ÈçºÎÓÅ»¯ASP.NETÓ¦ÓóÌÐò£¿
¸Õ¿´µ½ÁËһƬÎÄÕ http://dotnet.csdn.net/page/a92a1213-9896-49c7-9c89-14ae5f0d87ae Ìáµ½Èçϼ¸µã:
1. Êý¾Ý¿âÁ¬½Ó³¬Ê±
2. ´´½¨µÄ¶ÔÏóÖ»¹ÜÓ㬲»¹ÜÊÍ·Å
3. µ÷ÊÔ(Debug)ģʽϱàÒëºó£¬¾ÍÓÃÓÚÓ¦Óû·¾³ÖÐÁË
4. ʵ¼Ê×÷ҵģʽ·ÖÏí
1,2,3±È½ÏºÃÀí½â£¬ÎÒÔÚ×öµÄʱºò·¸ÁËËû˵µÄ µÚÈýÖÖ´íÎó£¬ÖÁÓÚ4 ²»ÊÇÌ«¶®? ÁíÍâÎÒ»¹·¢¹ýһƪÌû×Ó "ÈçºÎÓÅ»¯ASP.NETÍøÕ¾ÐÔÄÜ"
http://topic.csdn.net/u/20090905/10/636c79ea-53a3-408d-adb0-89803b30dd03.html ºóÆÚÎÒ»á¼ÌÐø¹Ø×¢ASP.NETµÄÐÔÄÜÓÅ»¯
Ïà¹ØÎĵµ£º
OnClientClick="this.disabled=true;this.form.submit();" UseSubmitBehavior="False"ÔÚ°´Å¥ÊôÐÔÖмÓÈëÕâ¶Î´úÂë
this.btnSubmit.Attributes["onclick"] = this.GetPostBackEventReference(this.btnSubmit) + ";this.disabled=true;";
Èç¹ûÊÇÌá½»ÊÇÒ»¸öButton£¬¿ÉÒÔʹÓÃjavascript£¬ÉèÖÃΪen ......
Image Web ·þÎñÆ÷¿Ø¼þʹÄú¿ÉÒÔÔÚ ASP.NET ÍøÒ³ÉÏÏÔʾͼÏñ£¬²¢ÓÃ×Ô¼ºµÄ´úÂë¹ÜÀíÕâЩͼÏñ¡£
Ò»¡¢±³¾°
¿ÉÒÔÔÚÉè¼Æʱ»òÔËÐÐʱÒÔ±à³Ì·½Ê½Îª Image ¶ÔÏóÖ¸¶¨Í¼ÐÎÎļþ¡£»¹¿ÉÒÔ½«¿Ø¼þµÄ ImageUrl ÊôÐ԰󶨵½Ò»¸öÊý¾ÝÔ´£¬ÒÔ¸ù¾ÝÊý¾Ý¿âÐÅÏ¢ÏÔʾͼÐΡ£
Óë´ó¶àÊýÆäËû Web ·þÎñÆ÷¿Ø¼þ²»Í¬£ ......
javascript º¯Êý ºÍ CustomValidator¿Ø¼þÏà½áºÏʹÓÃ
<asp:TextBox ID="txtPwdPrompt" runat="server"></asp:TextBox>
<asp:CustomValidator id="CVPwdPrompt" runat="server" ClientValidationFunction="CheckPwd" ControlToValidate="txtPwdPrompt" ErrorMessage="<span style='font:12px'>ÌáʾÎÊÌ ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
´«ËͲÎÊý£º
response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryStrin ......
Button±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var obj = event.srcElement;
var objs = document.getElement ......