Ò»¿î¾µäµÄajaxµÇ¼ҳÃæ ºǫ́asp.net
1£¬Ð½¨Ò»ÃûΪlogin.htmµÄ¾²Ì¬ÍøÒ³Îļþ£¬×÷ΪµÇ¼ҳÃ棬Èçͼ
body±êÇ©´úÂë
<body onkeydown ="enterLogin()"> <!--Ìí¼Ó°´Ï¼üÅÌʼþ-->
<div style="text-align: center" mce_style="text-align: center">
<table border="1" cellpadding="1">
<tr>
<td align="center" style="width: 100px; height: 20px; background-color: #99cccc"
valign="middle">
Óû§Ãû£º</td>
<td align="center" style="width: 74px; height: 20px; background-color: #99cccc" valign="middle">
<input id="txtusername" style="width: 111px; height: 19px" type="text" onblur ="checkuser()" /></td>
<td align="center" style="width: 199px; height: 20px; background-color: #99cccc"
valign="middle"><img src="" id ="imgCheck" style = "visibility :hidden; "/ ><span id ="unMessage">
</span></td>
</tr>
<tr>
<td align="center" style="width: 100px; height: 29px; background-color: #99cccc"
valign="middle">
ÃÜÂ룺</td>
<td align="center" style="width: 74px; height: 29px; background-color: #99cccc" valign="middle">
<input id="txtpwd" style="width: 107px; height: 17px" type="password" /></td>
<td align="center" style="width: 199px; height: 29px; background-color: #99cccc"
valign="middle"><span id ="pwdMessage"></span>
</td>
</tr>
<tr>
<td align="center" colspan="3" style="background-color: #99cccc" mce_style="background-color: #99cccc" valign="middle">
<input id="cbRememberPwd" type="checkbox" />¼ÇסÃÜÂëÒ»¸öÔÂ</td>
</tr>
<tr>
<td align="center" colspan="3" style="background-color: #99cccc" mce_style="background-color: #99cccc" valign="middle">
<input id="btnOK" type="button" value="怬" onclick ="login()" />
<input id="btnReset" type="button" value="ÖØÖÃ" onclick ="reset()" /></td>
</tr>
</table>
</div>
</body>
2£¬ÔÚlogin.h
Ïà¹ØÎĵµ£º
ÌõÐÎÂëÊÇÆù½ñΪֹ×á¢ÊµÓõÄÒ»ÖÖ×Ô¶¯Ê¶±ð¼¼Êõ¡£ÌõÐÎÂë¼¼Êõ¾ßÓÐÒÔϼ¸¸ö·½ÃæµÄÓŵã
¡¡¡¡A£®ÊäÈëËٶȿ죺Óë¼üÅÌÊäÈëÏà±È£¬ÌõÐÎÂëÊäÈëµÄËÙ¶ÈÊǼüÅÌÊäÈëµÄ5±¶£¬²¢ÇÒÄÜʵÏÖ“¼´Ê±Êý¾ÝÊäÈ딡£
¡¡¡¡B£®¿É¿¿ÐԸߣº¼üÅÌÊäÈëÊý¾Ý³ö´íÂÊΪÈý°Ù·ÖÖ®Ò»£¬ÀûÓùâѧ×Ö·ûʶ±ð¼¼Êõ³ö´íÂÊΪÍò·ÖÖ®Ò»£¬¶ø²ÉÓÃÌõÐÎÂë¼¼ÊõÎóÂëÂʵ ......
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.netÒ³ÃæÖеÄij¸öButton±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var obj = event.srcEl ......
·ÖÒ³Õâ¸öÒ²ÊÇ×î¶àÈËÎʵģ¬Ò²ÊǺܻù´¡ºÜʵÓõġ£
ÍøÉÏÓкܶà·ÖÒ³´úÂë,Òª²»ÊÇÓÐǰ̨¾Íûºǫ́,Òª²»ÊÇÓкǫ́ûǰ̨,Òª²»ÊǾÍÊǿؼþ,Òª²»¾ÍÊÇÒ»´ó¶ÑSQL´úÂ룬ÈÃÈ˲»ÖªµÀÔõÑùÓá£
Á¦Çó×î¼òµ¥×îÒ׶®.Èý²ã¼Ü¹¹ÄÇЩ¾Í²»¸ãÁË¡£×Ô¼ºÏÂÔØÒ»¸ö
Èç¹ûÊÇaccess ¾ÍÓÃÕâ¸öSQLHELPER [URL=http://hi.csdn.net/link.php?url=http://blo ......
ΪʲôҪȥÁ˽âASP.NETÔËÐÐʱģÐÍ£¨HTTPRuntime£©
ÔÚѧϰASP.NET֮ǰ£¬×îºÃÏÈѧϰһÏÂASP.NETµÄÔËÐÐʱģÐÍ£¬ÆäʵASP.NETµÄ±à³ÌÄ£ÐÍ·ÖΪASP.NETµÄÔËÐÐʱģÐͺÍÒ³Ãæ±ä³ÉÄ£ÐÍ¡£Ðí¶àµÄ²Î¿¼ÊéÖ»ÊÇÖ±½ÓµÄ½éÉÜASP.NETµÄÒ³Ãæ±à³ÌÄ£ÐÍ£¬¶øºöÂÔÁËÔËÐÐʱģÐÍ£¬Ò³Ãæ±à³ÌÄ£ÐÍÊÇASP.NET³ÌÐòÔ±Ö÷Òª×öµÄÊÂÇ飬µ«ÔÚ×öÕâЩ¹¤×÷֮ǰ£¬³ä·ÖµÄ ......