asp.netºǫ́µ÷ÓÃjsÎÊÌâ - .NET¼¼Êõ / ASP.NET
±¾ÈËÄ¿Ç°Óöµ½Ò»¸öÄÑÌ⣬Çë¸÷λ¸ßÊÖ¡¢´óÏÀ°ï°ïæ¡£
ÎÒµ¥»÷Ò»¸ö°´Å¥Ê±Òª°ÑgridviewÖеÄÊý¾ÝÒ»¸öÒ»¸öµÄÈ¡³ö²¢°Ñ¶ÔÓ¦²ÎÊý´«µÝ¸øǰ̨µÄjs¡£
ÎÒÊÔÁ˼¸ÖÖºǫ́µ÷ǰ̨µÄ·½Ê½¶¼Ã»Óгɹ¦£¬ËùÒÔÇë´óÏÀÃÇ°ï°ïСµÜ¡£
лл¡£
²»ÖªµÀ
ʲôЧ¹û
this.RegisterStartupScript("a", "<script type='text/javascript'>º¯ÊýÃû('²ÎÊý');</script>");
È磺
this.RegisterStartupScript("a", "<script type='text/javascript'>alert('ɾ³ý³É¹¦£¡');</script>");
ÉèÖÃÒ»¸öÊôÐÔ£¬ÔÚÒ³ÃæÒþ²ØÎı¾¿òÖаó¶¨ÊôÐÔÖµ£¬È»ºó¸ù¾Ý¸ÃÎı¾¿òidÈ¡Öµ
·½·¨Ò»£º1¡¢Ç°Ì¨Ê¹Óþ²Ì¬Îı¾¿Ø¼þÒþ²ØÓò£¬½«js±äÁ¿ÖµÐ´ÈëÆäÖÐ;
2¡¢ºǫ́ÓÃrequest["id"]À´»ñÈ¡Öµ;
·½·¨¶þ£º¿ÉÒÔÓÃcookie»òsession
ÓÃǰ̨µÄonclientclickʼþ ʵÏÖÐУ¿£¿
Page.ClientScript.Reqiest...()ÕâЩ·½·¨¶¼¿ÉÒÔµÄ
<tr>µÄlangÉèÖÃÒ»ÐеÄID£¬µã°´Å¥Ê±ºò£¬ÓÃjquery£º
var rows = $('#addCountryRow > tr');
rows.each(function(){ if(this.lang == ''){»ñÈ¡µ½Ä³Ò»ÐÐ} });
ÔÚºó¿ÉÒÔÈ¡µÃGridViewµÄÿһÐÐ
foreach(GridViewRow dr in GridView1.Rows)
{
this.RegisterStartupScript("a", " <script type='text/javascript'>º¯ÊýÃû('²ÎÊý'); </script>");
}
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
usin
Ïà¹ØÎÊ´ð£º
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
ÕâÑù¿ÉÒÔ·ÖÒ³£¬µ«ÊÇÎÒÔÚºóÃæÏë¼Ó¸öÌõ¼þ
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
ÄÄλ´ó¸çÓÐûÓÐASP.NETÖÐÀûÓÃCookiesʵÏÖÓû§×Ô¶¯µÇ¼µÄ´úÂë...ллÁË...Ô½ÏêϸԽºÃ....
ʲôÒâ˼£¿×Ô¶¯µÇ¼£¿
mark òÊÓÊÇ´æ´¢cookies ÎÒÒ²¶Ôcook±È½ÏÃÔºý ¹Ø×¢ÏÂ
¼ÈÈ»ÄãÖªµÀÓÃcookies×Ô¼º¶¯¶¯´óÄÔ¶àºÃ£¡ ......
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
±¾ÈËÒ»Ö±´ÓÊÂjavaµÄ¿ª·¢£¬ spring , strutsµÈµÈ£¬ ÏÖÔÚÂíÉÏÒª½ÓÒ»¸öasp.netµÄÏîÄ¿£¬ ²»ÖªµÀasp.netÖÐÓÐûÓкÍjavaÖеÄstrutsÀàËƵĶ«Î÷£¬ ¿ÉÒÔÔÚËûµÄ»ù´¡ÉÏ£¬Ö±½Ó¿ª·¢£¬ ЧÂʸߣ¬ ¶øÇÒºÃά»¤ ¡£¡£ лл£¬Ï£Íû´ó¼Ò£¬¶ ......
СµÜÊǽñÄê¸Õ±ÏҵѧÉúÕÒÁ˺ܳ¤Ê±¼ä¹¤×÷ÁË,×ÜÊÇʧ°Ü£¬Ò»Ð©¹«Ë¾¶¼ÒªÓй¤×÷¾ÑéµÄ£¬¶¼±ÀÀ£ÁË£¬ËùÒÔÏëÇë¸÷λ´ó¸ç°ï¸öæ
½ñÌìÎÒÈ¥ÃæÊÔÁËÒ»¼Ò¹«Ë¾£¬ËûÊÇÏë×öÒ»¸ö¡°Ò½ÁƵÄÍøÕ¾¡±Ï൱ÓÚÊÇÍƹã×Ô¼ºµÄÒ½ÁÆ·½·¨°É£¬Ëû½ÐÎ ......