ASP.NETÖÐÈçºÎµ¯³öÒ»¸öÏûÏ¢¿ò(ת)
¶¼ÖªµÀÔÚ¿Í»§諯ʹÓõ¯³ö¿òµÄÊDz»ÄÜÓÃMesssageBoxÀ´ÊµÏÖµÄ.
Ò»°ã¶¼Ê¹ÓÃÒÔϼ¸ÖÖ·½·¨.
1) Button.Attributes.Add("onclick","javascript:return confirm('È·¶¨?');");
ÕâÖÖ·½·¨..ÏÖÔÚʹÓÃ×îµÄ¶à..
ÔÚwww.csdn.netÀïÓÐÒ»ÎÄÕ¾ͺܺÃ.
http://www.csdn.net/Develop/Read_Article.asp?Id=20892
´ó¼Ò¿ÉÒÔ¿´Ò»ÏÂ..»áÓкܶàÊÕ»ñ.
2)ÁíÒ»¸ö·½·¨..ÎÒ²»ÖªµÀÆäËüÈËÓÐûÓÐÕâôÓÃ.²»¹ýÎÒÊÇÕâôÓõÄ..ºÜ͵ÀÁµÄ°ì·¨¾©ÊÇ
< div id=div1 onclick="javascript:return confirm('È·¶¨?');"><asp: button id="Button1" runat="server" Text="Button"></asp:button></div>
Õâ¸öÒ»ÑùÄÜʵÏÖ..¶øÇÒ²»ÓÃÔö¼Ó·þÎñÆ÷µÄ¶¯×÷...²»¹ýÓÐûÓÐÆäËüºó¹û..¾Í²»..ÖªµÀÁË..
ÔÚDataGridÖÐÒ»ÑùÔÚButtonÁÐÖÐʹÓÃÊôÐÔ±à¼Æ÷ÔÚÎı¾(t)ÖÐдÈë
<div id=div1 onclick="javasciprt:return confrim(È·¶¨?')">ɾ³ý</div>¾ÍÄÜÔÚDataGridÖÐʵÏÖɾ³ýÈ·ÈϵŦÄÜ..µ±È»Èç¹ûÿÐÐɾ³ý²»Ò»ÑùÄã¾ÍµÃÓÃÆäËü·½·¨ÁË.
http://www.csdn.net/Develop/Read_Article.asp?Id=20892
ÖÐÒ»ÑùÓнéÉÜ.
3)¿ÉÄÜÓÐʱºò´ó¼Ò»áÕâÑùµÄÓô¦..¾ÍÊÇÄãµã»÷µ¼ÈëÊý¾ÝµÄButtonµÄ°´Å¥ºó..Ï£ÍûÄܵ¯³öÒ»¸öalert('Êý¾Ýµ¼ÈëÍê³É!')ÕâÑùµÄÐÅÏ¢.
ÕâÀï¾ÍµÃÓÃÁíÍâµÄ·½·¨ÁË..¿ÉÄܺܶàÈ˶¼ÖªµÀ¾ÍÊÇʹÓÃ.
Page.RegisterClientScriptBlock ();»òPage.RegisterStartupScript();
ÕâÁ½Ò»¹¦ÄÜÉÏÏà²î²»ÊǺܴó...ÇÒÅäºÏ.Page.IsClientScriptBlockRegistered()»òPage.IsStartupScriptRegistered();À´Ê¹ÓõÄ
string scriptStr="<script language=javasciprt> alert('Êý¾Ýµ¼·ÅÒÑÍê³É')</"
sciprtStr+="sciprt>";
Page.RegisterStartupScript("alert1",sciprtStr);
¾ÍOkÁË.
¾Ý˵Page.RegisterClientScriptBlock ();±ÈPage.RegisterStartupScript();ºÃ..
µ«ÎÒ²»ÖªµÀÔÒò£¬ÄÄλÄÜ˵һÏÂ×îºÃÀ².
Ïà¹ØÎĵµ£º
ʹÓÃASP.Net FormsģʽʵÏÖWebServiceÉí·ÝÑéÖ¤
ÔÚ°²È«ÐÔÒªÇó²»ÊǺܸߵÄASP.Net³ÌÐòÖУ¬»ùÓÚFormsµÄÉí·ÝÑéÖ¤ÊǾ³£Ê¹ÓõÄÒ»ÖÖ·½Ê½£¬¶øÈç¹ûÐèÒª¶ÔWebService½øÐÐÉí·ÝÑéÖ¤£¬×î³£ÓõĿÉÄÜÊÇ»ùÓÚSoap ±êÍ·µÄ×Ô¶¨ÒåÉí·ÝÑéÖ¤·½Ê½¡£Èç¹û¶ÔÁ½Õß×öһϱȽϵϰ£¬ÏÔÈ»£¬»ùÓÚFormsµÄÑéÖ¤·½Ê½¸ü¼Ó·½±ãÒ×Óã¬ÄÜ·ñ½«F ......
ÔÚc# / ASP.netÖÐÎÒÃÇ¿ÉÒÔͨ¹ýʹÓÃDataTimeÕâ¸öÀàÀ´»ñÈ¡µ±Ç°µÄʱ¼ä¡£Í¨¹ýµ÷ÓÃÀàÖеĸ÷ÖÖ·½·¨ÎÒÃÇ¿ÉÒÔ»ñÈ¡²»Í¬µÄʱ¼ä£ºÈ磺ÈÕÆÚ£¨2008-09-04£©¡¢Ê±¼ä£¨12£º12£º12£©¡¢ÈÕÆÚ+ʱ¼ä£¨2008-09-04 12£º11£º10£©µÈ¡£
//»ñÈ¡ÈÕÆÚ+ʱ¼ä
DateTime.Now.ToString(); // 2008- ......
ÔÚÎÒÃÇ´«Í³µÄÍøÕ¾½¨ÉèÖÐͨ³£ÊÇÏÈÉè¼ÆÍøÕ¾Ò³Ãæ£¬ÔÙÀûÓÿª·¢¹¤¾ß£¬ÔÚÍøÕ¾µÄ¿ò¼ÜÄÚ½øÐй¦ÄÜÉè¼Æ¡£ÕâÑùµÄÍøÕ¾½¨Éè´æÔںܶà±×¶Ë£¬ÆäÖÐ×îÍ»³öµÄȱµãÊDz»ÀûÓÚС×鹲ͬ¿ª·¢£¬¸÷»·½ÚÖ®¼äÒÀÀµÐÔ̫ǿ¡£
ÔÚASP.NETÖÐÎÒÃÇ¿ÉÒÔÀûÓúǫ́±àÂ룬°ÑHTMLÓû§½çÃæÉè¼Æ£¨ÑÕÉ«¡¢ÃÀѧµÈ£©ÓëÒ³Ãæ´úÂëÇø·Ö¿ªÀ´¡£ÕâÑù¾Í¿ÉÒÔ½â¾öÎÒÃÇС×éµÄ²¢Ðпª·¢ÎÊ ......
Õû¸öSQLºÍAsp.net(vb.net)Ò»Æð´ò°üµÄÈ«¹ý³ÌдһÏ¡£
Ò».×¼±¸±ØÒªµÄÎļþ
1. SQL½Å±¾Îļþ£¬Éú³ÉÒÔºó°²×°¹ý³ÌÖÐÐèÒªµÄ±íºÍ´æ´¢¹ý³ÌµÈµÈ£»
Éú³ÉÖ®ºó£¬¾ÍÔÝʱ°ÑËüÃüÃûΪdb.sql(×¢Òâ´óСд)
2.LisenceFile.rtfµÄ°²×°Îļþ£¬ÒòΪÎÒµÄϵͳÊǸöÈ˵쬶øÇÒfreeµÄ£¬ËùÒÔ¾ÍûÓÐ×ö¡£Õâ¸öÒÔºóÒ²ÊÇÒªÓõ½µÄ¡£
¶þ.ÔÚ×Ô¼ºÏÖÓеÄÏîÄ¿Àïà ......
ûÓÐ×ÐϸÑо¿¹ýViewState£¬×î½ü³öÏÖµÄÎÊÌâÈÃÈËÍ·Í´²»ÒÑ¡£
ViewState»áÔÚÄ³Ð©ÌØ¶¨Çé¿öÏÂÏûʧ£¬ÇÒºÜÄѲ¶×½µ½¡£²éÁËһЩ¼¼ÊõÎÄÕ£¬¶¼ÊÇ˵ViewStateµÄ»úÖÆÊǽ«ÐÅÏ¢´æÔÚÒ³ÃæµÄhidden inputÀïÃæ£¬Ëƺõ²»¿ÉÄÜ´æÔÚÕâЩÎÊÌ⣬¸ø³öµÄÀíÓÉÎÞ·ÇÊÇÔÚij¸öµØ·½±»Ä³¸ö²»Ð¡ÐĵijÌÐòÔ±¸ø½ûµô»òÇå³ýµôÁ ......