Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚ¡¶asp:button>µÄÎÊÌ⣿

<asp:button>ĬÈÏ»áÌá½»Ò³Ã棬ÈçºÎ½« <asp:button>²»Ìá½»Ò³Ã棬¶øÖ´ÐÐÆäËûµÄº¯Êý£¬¼´aspÖÐµÄ <input type="button">
ÈçºÎ½« <asp:button>ÖØÖÃÒ³ÃæµÄ±íµ¥Öµ£¬¼´aspÖÐµÄ <input type="reset">
OnClientClickÈ»ºóȥдJS


1,²»Ìá½»±íµ¥,Ö´ÐÐJSº¯ÊýµÄ»°,Ö±½Ó
<asp:Button id="btn" runat="server" OnClientClick="JS·½·¨" />
2,ÖØÖÃ
ÄãÒ²¿ÉÒÔÔÚÒ³ÃæÖ±½ÓÓÃ
<input type="reset">

»òÕß
µã»÷asp:Button ÖØÐÂÔØÈëÒ³Ãæ,»òÕßÖ´ÐÐJS·½·¨Çå¿Õ±íµ¥

<asp:button>ÒªÖ´ÐÐʲô£¬¶¼ÊÇÓÉÄã×Ô¼ºÉ趨µÄÀ²
OnClick,OnClientClick
ÉèÖÃÕâЩʼþ¶ÔÓ¦µÄº¯Êý

Äܲ»ÄÜд¸ö´úÂëÏêϸ˵һÏ£¬Ð»Ð»£¬ÒòΪÎÒ¸Õѧnet,Ô­À´Ñ§µÄÊÇASP¡£

Â¥Ö÷Èç¹ûÊÇÏë×öÖØÖð´Å¥µÄ»°Äã¾ÍÓà <input type="reset"> ÓÃÕâ¸öÁË¡£
<asp:button>ÖеÄOnClickÖ´ÐеÄÊǺǫ́ʼþ,OnClientClick ¿ÉÒÔµ÷ÓÃjs·½·¨
µ±js·½·¨·µ»ØfalseµÄʱºòºǫ́ʼþ¾Í²»Ö´ÐÐÁË£¬·´ÔòÖ´Ðкǫ́ʼþ ¡£
¾Í±ÈÈçÒ»¸öÅжÏÎı¾¿òÊÇ·ñΪ¿Õ
function check()
{
  if(Îı¾¿ò=="")
  {
    alert('¸ÃÎı¾¿ò²»ÄÜΪ¿Õ');
    return false;
  }
}
µ÷Ó㺠<asp:button OnclientClick="return check()">
Èç¹ûÎı¾¿òΪ¿ÕµÄʱºòºǫ́µÄʼþ¾Í²»»áÖ´ÐС£

Òª×öresetµÄ»°ÄÇ»¹ÊÇÓà <input type="reset"¾ÍÐÐÁË¡¡£¬Ã»±ØÒª·ÇÓà <asp:button



Ïà¹ØÎÊ´ð£º

¹ØÓÚJavaºÍasp - Java / Java SE

´ó¼ÒºÃ£¬ÎÒÏÖÔÚÓÐÒ»¸öÓÃaspдµÄÁÄÌìÊÒ£¬ÏÖÔÚµÄÏëÌí¼ÓÒ»¸ö¹¦ÄÜ£¬¾ÍÊǵ±ÓÐÈËÉÏÏßµÄʱºò£¬·¢³öÌáʾ£¬±ÈÈçÉùÒôÏìһϣ¬ÏÖÔÚÏëÓÃjavaʵÏÖÕâ¸ö¹¦ÄÜ£¬ÇëÎÊ´ó¼ÒÔõôʵÏÖ£¿
ллÁË£¬ÎÒ»á¼Ó·ÖµÄ
aspºÍjavaÕûºÏµ½Ò»ÆðÈ¥£¿ºÎ±Ø ......

ASPÒ³ÃæÎÞ·¨´ò¿ªÇóÖú£¡ - MS-SQL Server / »ù´¡Àà

¸÷λºÃ£¬ÎÒ¸Õ°ÑÒ»¸öASPÍøÕ¾ÉèÖúÃÁË£¬Ò²ÄÜÕý³£·ÃÎÊ¡£µ«ÊÇÔÚÎÒ±¾»úÉϲ»ÄÜ´ò¿ªadmin\login.asp,ËùÒÔÎÞ·¨ÊµÏÖºǫ́¹ÜÀí¡££¨´íÎóÌáʾÎÞ·¨ÕÒµ½ÍøÒ³£¬´úÂë404£¬ÎҵIJÙ×÷ϵͳÊÇwin2000 server)
µ«ÊÇÆæ¹ÖµÄÊÇÔÚ¾ÖÓòÍøµÄÆäËû» ......

asp wap sqlÓï¾äÖлñÈ¡µÄºº×Ö²»ºÃÊ - Web ¿ª·¢ / ASP

SQL code:

rs.open "select * from guide where city_name='±±¾©' order by pai desc",conn,1,1
do while not rs.eof or rs.bof
¡£¡£
¡£¡£
¡£¡£
rs.movenext
loop
Õâ¸ösqlÓï¾äÔÚwapÕ¾Àï ±¾ÉíÓÐ ......

asp.net Ê×Ò³ - .NET¼¼Êõ / ASP.NET

ÄÄλÄܸø¸öasp.net webformÊ×Ò³µÄÀý×Ó£¬
ÒªÇó£º
1¡¢Ê¹ÓÃframe¿ò¼ÜÒ³
2¡¢frame×ó²àΪtreeviewµ¼º½

Asp.netÖÐFramesetµÄʹÓÃ
http://blog.csdn.net/liangjingbo/archive/2006/10/19/1341423.aspx


ͬÒâÂ¥ÉÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ