ASP.NET
ASP.NET Framework°üº¬Èý¸öÓÃÓÚÏò·þÎñÆ÷¶ËÌá½»±íµ¥µÄ¿Ø¼þ£ºButton¡¢LinkButtonºÍImageButton¡£ÕâÈý¸ö¿Ø¼þÓµÓÐͬÑùµÄ¹¦ÄÜ£¬µ«Ã¿ÖֿؼþµÄÍâ¹Û½çÃ治ͬ¡£
±¾½ÚѧϰÈçºÎÔÚÒ³ÃæÖÐʹÓÃÕâÈýÖֿؼþ¡£È»ºó£¬Ñ§Ï°ÈçºÎ¹ØÁª¿Í»§¶Ë½Å±¾ºÍ·þÎñÆ÷¶ËButton¿Ø¼þ£¬ÒÔ¼°ÈçºÎʹÓÃButton¿Ø¼þ°ÑÒ»¸ö±íµ¥´«µ½²»Êǵ±Ç°Ò³µÄÒ³Ãæ¡£×îºó£¬Ñ§Ï°ÈçºÎ´¦ÀíButton¿Ø¼þµÄCommandʼþ¡£
Ò»¡¢Ê¹ÓÃButton¿Ø¼þ
Button¿Ø¼þÓÃÀ´Ïò·þÎñÆ÷¶ËÌá½»±íµ¥µÄ°´Å¥¡£ÀýÈ磬´úÂëÇåµ¥1ÖеÄÒ³Ãæ°üº¬Ò»¸öButton¿Ø¼þ¡£µã»÷Õâ¸öButton¿Ø¼þ£¬Ôò¸üÐÂÓÉLabel¿Ø¼þÏÔʾµÄʱ¼ä£¨¼ûͼ1£©¡£
´úÂëÇåµ¥1 ShowButton.aspx
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
<title>Show Button</title>
</head>
<form id="form1" runat="server">
<div>
<asp:Button id="btnSubmit" Text="Submit" OnClick="btnSubmit_Click" Runat="server" /> <br /><br />
<asp:Label id="lblTime" Runat="server" />
</div>
</form>
ͼ1 ÏÔʾButton¿Ø¼þ
Button¿Ø¼þÖ§³ÖÏÂÁÐÊôÐÔ£¨²»ÍêÈ«ÁÐ±í£©£º
·AccessKey——Ö¸¶¨Ò»¸öµ¼ÏòButton¿Ø¼þµÄ¼ü¡£
·CommandArgument——ÓÃÓÚÖ¸¶¨´«¸øCommandʼþµÄÃüÁî²ÎÊý¡£
·CommandName——Ö¸¶¨´«¸øCommandʼþµÄÃüÁîÃû¡£
·Enable——ÓÃÓÚ½ûÓøÃButton¿Ø¼þ¡£
·OnClientClick——Ö¸¶¨µã»÷°´Å¥Ê±Ö´ÐеĿͻ§¶Ë½Å±¾¡£
·PostBackUrl——ÓÃÓÚÉèÖý«±íµ¥´«¸øij¸öÒ³Ãæ¡£
·TabIndex——ÉèÖÃButton¿Ø¼þµÄTab˳Ðò¡£
·Text——ÓÃÓÚ±ê×¢Button¿Ø¼þ¡£
·UseSubmitBehavior——ÓÃÓÚʹÓÃJavaScript»Ø´«±íµ¥¡£
Button¿Ø¼þÖ§³ÖÏÂÃæµÄ·½·¨£º
·Focus()——ÓÃÓڰѳõʼ±íµ¥½¹µãÉèΪ¸ÃButton¿Ø¼þ¡£
Button¿Ø¼þ»¹Ö§³ÖÏÂÃæÁ½¸öʼþ
Ïà¹ØÎĵµ£º
ÔÚASP.NET ÖÐʵÏÖµ¥µãµÇ¼
³ö×Ô£º¡¾ÃÏÏÜ»áÖ®¾«²ÊÊÀ½ç¡¿ ·¢²¼ÈÕÆÚ£º2005Äê1ÔÂ27ÈÕ 8µã48·Ö0Ãë
ÓÉÓÚijЩÔÒò£¬ÔÚÎÒÃǵÄÓ¦ÓÃÖлáÓöµ½Ò»¸öÓû§Ö»ÄÜÔÚÒ»¸öµØ·½µÇ¼µÄÇé¿ö£¬Ò²¾ÍÊÇÎÒÃÇͨ³£Ëù˵µÄµ¥µãµÇ¼¡£ÔÚASP.NETÖÐʵÏÖµ¥µãµÇ¼ÆäʵºÜ¼òµ¥£¬ÏÂÃæ¾Í°ÑÖ÷ÒªµÄ·½·¨ºÍÈ«²¿´úÂë½øÐзÖÎö¡£
ʵÏÖ˼·
ÀûÓÃCacheµÄ¹¦ÄÜ ......
1.ÎļþÏÂÔØ
HTTP ÎļþÏÂÔØÖ÷ÒªÓÐÁ½ÖÖ·½Ê½£º
URL·½Ê½Ö±½ÓÏÂÔØ£¬ÓŵãÊÇ£ºÕ¼Ó÷þÎñÆ÷×ÊÔ´ÉÙ£¬Ëٶȿ죻ȱµãÊÇ£º ²»ÄÜ׼ȷ¼ÆÁ¿ÏÂÔØ´ÎÊý£¬ÎÞ·¨·ÀÖ¹µÁÁ´£¬±£´æÔÚÊý¾Ý¿âÖеÄÎļþÎÞ·¨ÏÂÔØ£¬³£¼û¸ñʽµÄÎļþÈç.html Ö±½ÓÔÚä¯ÀÀÆ÷Öдò¿ª£¬²»ÄÜÖ±½ÓÏÂÔØ¡£
¶þ½øÖÆÊý¾ÝÁ÷Êä³ö·½Ê½£¬ÓŵãÊÇ£º×¼È·¼ÆÁ¿ÏÂÔØ´ÎÊý¡¢ÄÜ·ÀµÁÁ´¡¢ËùÓÐÎļ ......
ϵͳ»·¾³:
Ê×ÏȺͻúÆ÷Ó²¼þÎÞ¹Ø,ÕâÊÇVista°æµÄ½Ì³Ì,Ö»ÒªÄãµÄ»úÆ÷ÄÜÔËÐÐVista,OK,Ч¹ûÒ»Ñù.
Vista°æ±¾:Ultimate Ò²½ÐVistaÆì½¢°æ
ϵͳ״̬:È«ÐÂ,ÒÑ°²×°IIS
×¢Òâ:VistaĬÈÏÇé¿ö²¢Î´°²×°IIS,¿ÉÒÔÔÚ¿ØÖÆÃæ°åÀïÑ¡°²×°IIS,Õâ¸öÈç¹ûÓÐÎÊÌâµ¥¶ÀÁªÏµÎÒ,½ñÌì²»½²Ëü.
----------------------------------------------------- ......
Ê×ÏÈÌí¼ÓÒ»¸öÄ£°åÁУ¬ÄÚÈÝÈçÏÂ
<asp:TemplateField HeaderText="²Ù×÷">
<ItemTemplate>
<div onclick="return confirm('ÄúÈ·¶¨ÒªÉ¾³ýÂð£¿')">
  ......
´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.netÒ³ÃæÖеÄij¸öButton±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var ......