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

asp.netÃæÊԴ𰸲¹³ä2 aspxÒ³ÃæÒÔ¼°È«¾Öʼþ

aspxÒ³ÃæÖÐʼþµÄÖ´ÐÐ˳Ðò
1.asp.netµÄÇëÇó¹ý³Ì£¬ÒÔ¼°¶ÔÓ¦µÄ´¦ÀíÇëÇóµÄdll
¿Í»§µÄÇëÇóÒ³ÃæÓÉaspnet_isapi.dllÕâ¸ö¶¯Ì¬Á¬½Ó¿âÀ´´¦Àí£¬°ÑÇëÇóµÄaspxÎļþ·¢Ë͸øCLR½øÐбàÒëÖ´ÐУ¬È»ºó°ÑHtmlÁ÷·µ»Ø¸øä¯ÀÀÆ÷
2.Ò³ÃæÊ¼þ(°´ÕÕʼþµÄÖ´ÐÐ˳ÐòÅÅÁÐ)
Page_Init£º³õʼ»¯Öµ»òÁ¬½Ó
Page_Load:Ö÷ҪʹÓÃIsPostBack£¬¸ÃʼþÖ÷ÒªÖ´ÐÐһϵÁеòÙ×÷À´Ê״δ´½¨asp.netÒ³Ãæ»òÏìÓ¦
ÓÉͶµÝÒýÆðµÃ¿Í»§¶Ëʼþ¡£ÔÚ´Ëʼþ֮ǰ£¬ÒÑ»¹Ô­Ò³ÃæºÍ¿Ø¼þÊÓͼ״̬¡£
Page_DataBind:ÔÚÒ³Ãæ¼¶±ðÉϵ÷Óã¬Ò²¿ÉÔÚµ¥¸ö¿Ø¼þÖе÷Óá£
DataBind_PreRender:Êý¾Ý°ó¶¨Ô¤³ÊÏÖ£¬Ç¡ºÃÔÚ±£´æÊÓͼ״̬ºÍ³ÊÏֿؼþ֮ǰ¼¤·¢´Ëʼþ¡£
Page_Unload:´ËʼþÊÇÖ´ÐÐ×îÖÕÇåÀí¹¤×÷µÄ¡£
·ÇÈ·¶¨Ê¼þ
Page_Error£ºÈç¹ûÔÚÒ³Ãæ´¦Àí¹ý³ÌÖгöÏÖδ´¦ÀíµÄÀýÍ⣬Ôò¼¤·¢errorʼþ¡£
Page_AbortTransaction:½»Ò×ʼþ£¬ÊÂÎñ´¦ÀíÖÐÈç¹ûÒÑÖÕÖ¹½»Ò×£¬Ôò¼¤·¢´Ëʼþ£¬¹ºÎï³µ³£Óá£
Page_CommitTransaction:Èç¹ûÒѳɹ¦½»Ò×£¬Ôò¼¤·¢´Ëʼþ¡£
¿ÉÒÔͨ¹ýÔÚÒ³ÃæÉ϶¨Òå@Page Transaction=RequiredÀ´¶¨ÒåÒ³ÃæµÄʱ¼äÊôÐÔ¡£²»¹ý¸Ã·½Ê½²»Ò»¶¨¼ûµÃÔÚÒ³Ãæ¿ªÆôÊÂÎñ¸øÈ˵ĸоõ²»ÊǺܺá£
Global.asaxÖеÄʼþ£¨Ö´ÐÐ˳Ðò£©
Application_Start£ºÓ¦ÓóÌÐòÆô¶¯Ê±¼¤·¢
Application_BeginRquest£ºhttpÇëÇó¿ªÊ¼Ê±¼¤·¢
Application_AuthenticateRequest: Ó¦ÓóÌÐòÅú×¼httpÇëÇóʱ¼¤·¢
Session_Start£º »á»°Æô¶¯Ê±¼¤·¢
Application_EndRequest£ºHtttpÇëÇó½áÊøÊ±¼¤·¢
Session_End£º»á»°½áÊøÊ±¼¤·¢
Application_End£ºÓ¦ÓóÌÐò½áÊøÊ±¼¤·¢
Application_Error£º ·¢Éú´íÎóʱ¼¤·¢


Ïà¹ØÎĵµ£º

ASP.NET³ÌÐòÖг£ÓôúÂë»ã×Ü

 1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º //´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="++"’)£¼/script£¾")
¡¡¡¡//½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");

2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......

ASP.NETÖеÄFormsºÍWindows»ìºÏÑéÖ¤

±¾ÎÄ·­Òë×Ô£ºMixing Forms and Windows Security in ASP.NET
ÕªÒª£ºASP.NET¿ª·¢ÈËÔ±Ôø¾­Îʵ½¹ýÈçºÎʹÓÃFormsºÍWindows»ìºÏÑéÖ¤¡£Paul WilsonÌṩÁËÒ»¸ö½â¾ö·½°¸À´»ñµÃWindowsÓû§Ãû£¬»òÕߣ¬½«Óû§×ªÏòµÇÂ¼Ò³Ãæ¡£
¼ò½é
ÎÒÔø¾­Óöµ½ºÜ¶àASP.NET¿ª·¢ÈËÔ±Îʵ½ÈçºÎʹÓÃFormsºÍWindows»ìºÏÑéÖ¤¡£Í¨³£µÄ»Ø´ðÊÇ£º“ASP.NET²» ......

asp.net C#ÃüÃû²ÎÊýSqlParameterÏê½â

DBHelper:
         /// <summary>
        /// Ö´Ðвéѯ
        /// </summary>
        /// <param name="sql">ÓÐЧµÄselectÓï¾ä</param ......

ASP.NETÖÐÀûÓÃJSʵÏÖͼƬ¹ö¶¯

               JS´úÂë:
 
                           <script type="text/javascript" languag ......

ASP.NETÍøÒ³µÄ´¦Àí¹ý³Ì

     ASP.NETµÄ¹Ø¼üÄ¿±êÖ®Ò»ÊÇ´´½¨Ò»ÖÖÈÿª·¢ÈËÔ±Äܹ»ÏñWindowsÓ¦ÓóÌÐò¿ª·¢Õß¶¨ÖÆ×ÀÃæÓ¦ÓóÌÐòÄÇÑùµÄ¿ìËÙ¶¨ÖÆWeb FormsµÄģʽ¡£µ±È»WebÓ¦ÓóÌÐòÓ봫ͳ¸»¿Í»§¶ËÓ¦ÓóÌÐòÓкܴóµÄ²»Í¬£¬ÒªÊµÏÖÕâÖÖģʽÓÐÁ½¸ö¹Ø¼üµÄÕϰ­¡£
     1.WebÓ¦ÓóÌÐòÊÇÔÚ·þÎñÆ÷¶ËÖ´ÐеģºÀýÈ磬¼ÙÉè´´½¨Ò»¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ