ÇëÎÊÔÚScriptManagerÖУ¬ÓÃÕâ¸öÒýÈëJS½Å±¾£º
<asp:ScriptReference Path="MyPath/MyCustomScript.js" />
ºÍÖ±½ÓÒýÈë½Å±¾ÓÐʲô²»Í¬ÄØ£¿
ÏñÕâÑù£º
<script src="MyPath/MyCustomScript.js" type="text/javascript"></script>
ÇëÖ¸½Ì£¡~~
Ê×ÏÈÓÃScriptManager£¬ÊǵÈÓÚÓÃÁË·þÎñÆ÷¿Ø¼þÀ´´¦Àí£¬scriptÊÇÖ±½Óhtml´úÂëÊä³ö¡£¡£¡£Çø±ð¾ÍºÃÏñImageµÄ·þÎñÆ÷¿Ø¼þºÍÖ±½ÓÓÃHTML´úÂëÊä³öÒ»¸öͼÏñµÄÇø±ð¡£¡£¡£×Ô¼ºÌå»áÒ»ÏÂ
ÁíÍ⣬ÓÃScriptReference¿ÉÒÔ½«¶à¸öjsÎļþ£¬Ö»Í¨¹ýÒ»´ÎhttpÇëÇó¾ÍÍêÈ«¶Áµ½¿Í»§¶Ë£¬ÒòΪÿ¸öhttpÇëÇó¶¼ÒªÏȸú·þÎñÆ÷ÎÕÊÖ£¬È»ºóÔÙ´«ÊäÊý¾Ý£¬¶à´ÎÇëÇ󣬾ÍÓжà´ÎÎÕÊÖ£¬²¢µÈ´ý·þÎñÆ÷ÏìÓ¦£¬ËùÒÔÏÂÔØʱ¼ä³¤ÁË¡£¡£¡£ScriptReference¿ÉÒÔ½«¶à¸öÏÂÔØjsµÄÇëÇóÔÚÒ»´ÎhttpÇëÇóÀïÍê³É¡£¡£¡£ÏêÇé²Î¿¼msdn
http://msdn.microsoft.com/zh-cn/library/cc488552.aspx
ÄǶà¸öjsµÄʱºòÎÒ¶à¸ö <script src="XXX.js" type="text/javascript"></script>
²»ÊÇÒ²Ò»ÑùÊÇÒ»´ÎÇëÇó¾Í¿ÉÒÔ°Ñjs¶Áµ½¿Í»§¶ËÂð£¿
Â¥Ö÷Àí½â´íÁË£¬¸øÄã´ò¸ö±È·½°É
Ïà¹ØÎÊ´ð£º
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
ÎÒÓÃasp.net¿ª·¢wapÕ¾µã£¬Íê³ÉºóÈ¥http://validator.w3.org/ÕâÀïÑéÖ¤ÎÒµÄWapÒ³ÃæÊÇ·ñ±ê×¼£¬ÆäËüÎÊÌⶼ¸ÄºÃÁË£¬
¾ÍÊ£ÕâÒ»¸ö´íÎóÁË£¬°´×ÖÃæÒâ˼Àí½âÊÇ˵nameÊôÐÔÒÑ´æÔÚ£¬ÀàËÆÕâÑùµÄ´íÎó»¹Óв»ÄÜÓÃborder ,align,sizeµ ......
´úÂëÖУ¬Èç¹û½«//alert(1)¡¡×¢ÊÍ´ò¿ª£¬ÄÇô¾Í¿ÉÒÔµ÷Óã¬Èç¹û×¢Ê͵ô¾ÍÎÞ·¨µ÷ÓÃ
»³ÒÉÊǵ¼JSÎļþ³öÎÊÌâÁË£¬ÒòΪд¹ýjspÒýÁ½¸öJSÎļþûÎÊÌ⣬
¶øJSPÒýÒ»¸öJSÎļþ£¬Õâ¸öJSÒý±ðÍâµÄJSÎļþ³öÏÖÏÂÃæÎÊÌ⣬ÉÏÍøÕÒÁË°ëÌìû½á ......
´ó¼ÒºÃ!ÎÒÊÇÒ»¸öѧÉú,ÏÖÔÚÊÇѧASPµÄ²»ÖªµÀÔõô»ØÊÂ,ÎÒ×Ô¼ºÊÇÓÃCMS×ö¹ýÍøÕ¾ ´úÂëÒ²ÄÜ¿´¶®Ò»µã ÏÖÔÚÏëÂò±¾Êé,Ïë·¨Óкܶà,¾ÍÊÇÏëÂòASPµÄ ÓÖ¿´µ½´ó¼Ò˵ASPÒÔºóûÓÐNETÇ°¾°ºÃ,ÎÒÓÖÏëÔÙÈ¥Âò±¾ASP.NETµÄ ÎÒÖªµÀÓÐÕâÑùµÄÏë·¨ ......
ÎÒÓÐÁ½¸ödropdownlist¶¼°óºÃÁËÖµ£¬ÏëÑ¡ÖÐÒ»¸ödropdownlistÖеÄÖµ£¬È»ºóÔÚÁíÒ»¸ödropdownlistÖÐÑ¡ÖÐÏàÓ¦µÄÒ»Ïî¡£
²»ÊÇ´Óа󶨵ڶþ¸ödropdownlist£¬ÊÇÔÚÒѾ°óºÃµÄÖµµ±ÖÐÑ¡ÖÐÒ»¸ö¡£
ÎÒÏëÓÃjsд
ÇóÖú
Äã¿ÉÒÔ°Ñdrop ......