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 ......
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
<a>aaa
</a>
<b>bbb
</b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
СµÜÊǽñÄê¸Õ±ÏҵѧÉúÕÒÁ˺ܳ¤Ê±¼ä¹¤×÷ÁË,×ÜÊÇʧ°Ü£¬Ò»Ð©¹«Ë¾¶¼ÒªÓй¤×÷¾ÑéµÄ£¬¶¼±ÀÀ£ÁË£¬ËùÒÔÏëÇë¸÷λ´ó¸ç°ï¸öæ
½ñÌìÎÒÈ¥ÃæÊÔÁËÒ»¼Ò¹«Ë¾£¬ËûÊÇÏë×öÒ»¸ö¡°Ò½ÁƵÄÍøÕ¾¡±Ï൱ÓÚÊÇÍÆ¹ã×Ô¼ºµÄÒ½ÁÆ·½·¨°É£¬Ëû½ÐÎ ......