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

ASP.NETµ¯³öÈ·ÈÏ´°¿Ú

ÔÚASP.NET 1.1ÖУ¬Òª×ö1¸öµ¯³öµÄÈ·È϶Ի°¿òµÄ»°£¬Ò»°ãÊÇÔÚ·þÎñ¶ËµÄ´úÂëÖÐÕâÑùд£º
private void Page_Load(object sender, System.EventArgs e)
{
    btnClick.Attributes.Add("onclick", "return confirm('Are you sure?');");
    // Button1.Attributes["OnClick"] = "return confirm('are you sure?')";
    Label1.Text="are you sure";
}
private void Button1_Click(object sender, System.EventArgs e)
{
    Label1.Text="I'm sure";
}
ÔÚASP.NET 2.0ÖУ¬Ö»ÒªÊ¹Óÿͻ§¶ËµÄ´úÂë¾Í¿ÉÒÔÀ­£¬Ð¶àÁ˸öonclientclick£¬ÔÚÒ³Ãæ´úÂëÖÐÕâÑùд£º
<asp:button id="btnClick" runat="server" OnClientClick="return confirm('Are you sure?');" text="Button"></asp:button>
ÕâÁ½ÖÖЧ¹ûÊÇÒ»ÑùµÄ¡£
²¹³ä˵Ã÷£º
Óû§Ö´Ðа´Å¥µÄ²Ù×÷ʱ£¬ÏÈÔÚ±¾µØÖ´Ðе¯³öÒ»¸öconfirmµÄÈ·ÈÏ´°¿Ú£¬ÔÙ¸ù¾ÝÓû§µÄÑ¡Ôñ£¬ÅжÏÊÇ·ñÒªÖ´Ðа´Å¥µÄ²Ù×÷¡£¿ÉÄÜÔÚ¸Õ¿ªÊ¼µÄʱºò»áÈÏΪ·þÎñÆ÷¶ËÊÇÔõô֪µÀÓû§µÄÑ¡Ôñ£¬ÆäʵÔÚµã»÷ºó£¬µ±Ñ¡Ôñ“È¡Ïû”ʱ¿Í»§¶Ë×Ô¼º½øÐÐÈ·ÈÏ£¬²¢Ã»Óз¢µ½·þÎñÆ÷¶Ë½øÐÐÈ·ÈÏ¡£


Ïà¹ØÎĵµ£º

ASP.NET 2.0ÖÐʵÏÖÄ£°åÖеÄÊý¾Ý°ó¶¨

Ä£°å»¯µÄÊý¾Ý°ó¶¨¿Ø¼þΪÎÒÃÇÔÚÒ³ÃæÉÏÏÔʾÊý¾ÝÌṩÁ˸ù±¾µÄÁé»îÐÔ¡£Äã¿ÉÄÜ»¹¼ÇµÃASP.NET v1.xÖеļ¸¸öÄ£°å»¯¿Ø¼þ£¨ÀýÈçDataListºÍRepeater¿Ø¼þ£©¡£ASP.NET 2.0ÈÔȻ֧³ÖÕâЩ¿Ø¼þ£¬µ«ÔÚÄ£°åÖаó¶¨Êý¾ÝµÄÓï·¨ÒѾ­±»¼ò»¯ºÍ¸ÄÉÆÁË¡£±¾ÎĽ«ÌÖÂÛÔÚÊý¾Ý°ó¶¨¿Ø¼þÄ£°åÖаó¶¨Êý¾ÝµÄ¶àÖÖ·½·¨¡£
Êý¾Ý°ó¶¨±í´ïʽ
ASP.NET 2.0¸ÄÉÆÁËÄ£°åÖÐ ......

BindºÍEvalµÄ²»Í¬Ó÷¨ (asp.net C#)

½ñÌìÔÚÓÃDataListµÄÄ£°åÁеÄʱºòÏ°¹ßÐÔµØÏñÔÚ03ÖÐÄÇÑùÈ¥¸øÄ£°åÁеİó¶¨×ֶμӸö´¦Àíº¯Êý£º
 < asp:Label ID = " Label1 " runat = " server " Text = ' <%#ConvertState(Bind("Status"))%> ' ></ asp:Label >
     ¿ÉÊǾ¹È»³ö´í£ºµ±Ç°ÉÏÏÂÎÄÖв»´æÔÚÃû³Æ“Bind” ......

ASP.NetÖÐ×Ô¶¨ÒåHttp´¦Àí¼°Ó¦ÓÃÖ®HttpModuleƪ

HttpHandlerʵÏÖÁËÀàËÆÓÚISAPI ExtentionµÄ¹¦ÄÜ£¬Ëû´¦ÀíÇëÇó(Request)µÄÐÅÏ¢ºÍ·¢ËÍÏìÓ¦(Response)¡£HttpHandler¹¦ÄܵÄʵÏÖͨ¹ýʵÏÖIHttpHandler½Ó¿ÚÀ´´ïµ½¡£¶øHttpModuleʵÏÖÁËÀàËÆÓÚISAPI FilterµÄ¹¦ÄÜ¡£
HttpModuleµÄʵÏÖ
HttpModulesʵÏÖÁËÀàËÆÓÚISAPI FilterµÄ¹¦ÄÜ£¬ÔÚ¿ª·¢ÉÏ£¬Í¨³£ÐèÒª¾­¹ýÒÔϲ½Ö裺
±àдһ¸öÀà£¬Ê ......

asp.net »ñÈ¡html¿Ø¼þµÄÖµµÄ´úÂë

asp.net »ñÈ¡html¿Ø¼þµÄÖµµÄ´úÂëÈçÏ£º
WebForm1.aspx£º
   < INPUT ID="TXT"  TYPE="TEXT" RUNAT="SERVER" VALUE="AAAAAA">  
    < INPUT TYPE="BUTTON" RUNAT="SERVER" VALUE="BTNTEST"  ID="BUTTON1"&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ