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

ASP.NET 2.0ÔËÐÐʱ¼òÒª·ÖÎö

¸ÅÊö:
      ±¾ÎÄ»ùÓÚASP.NET 2.0µÄÔ´´úÂ룬¶ÔASP.NET 2.0ÔËÐÐʱ½øÐÐÁ˼òÒªµÄ·ÖÎö£¬Ï£ÍûÄÜ°ïÖúÄãÀí½âASP.NET 2.0ÖÐÇëÇó´¦Àí¹ý³Ì¼°Ò³Ãæ±àÒëÄ£ÐÍ¡£
¹Ø¼ü×Ö£º
     ASP.NET 2.0ÔËÐÐʱ£¬Ô­Àí£¬ÇëÇó´¦Àí£¬Ò³Ãæ±àÒ룬ASP.NET 2.0 HTTP Runtime
Ö÷ÒªÀࣺ
     System.Web.HttpRuntime
     System.Web.HttpApplicationFactory
     System.Web.HttpApplication
     System.Web.Compilation.BuildManager
     System.Web.Compilation.ApplicationBuildProvider
     System.Web.Compilation.BuildProvidersCompiler
     System.Web.UI.PageHandlerFactory
ÇëÇó´¦Àí¼òÒªÁ÷³Ìͼ:
ÔĶÁ½¨Ò飺
     ÓÃReflector¹¤¾ß±ß²é¿´ASP.NET 2.0µÄÔ´´úÂë±ßÔĶÁ¡£
 
·ÖÎö£º
      µ±ÎÒÃÇͨ¹ýä¯ÀÀÆ÷ÏòASP.NET 2.0ÍøÕ¾µÄÒ»¸öasp.netÒ³Ãæ·¢ÆðÇëÇóʱ£¬ÔÚ·þÎñÆ÷¶ËÊ×ÏÈÊÇIISÊÕµ½ÇëÇó£¬IISÒ»¿´ÊÇasp.netÒ³Ã棬ÐÄÀïºÜ¿ªÐÄ£¬ÒòΪÕâ¸öÇëÇó²»ÓÃËü´¦Àí£¬½»¸øASP.NET ISAPI¾ÍÐÐÁË¡£ASP.NET ISAPIµÄ¹¤×÷Ò²±È½ÏÇáËÉ£¬ËûµÄÖ÷ÒªÈÎÎñ¾ÍÊÇ°²ÅÅaspnet_wp.exe´¦ÀíÇëÇ󣬲¢¼àÊÓaspnet_wp.exe½ø³ÌµÄÖ´ÐÐÇé¿ö£¬Èç¹ûaspnet_wp.exe½ø³ÌÌ«ÀÛÁË£¬²»ÄܳöÉ«µØÍê³ÉÈÎÎñ£¬ASP.NET ISAPI¾ÍÒªÈÃËûϸڣ¬»»Ò»¸öеÄaspnet_wp.exeÀ´´¦Àí¹¤×÷¡£ 
     aspnet_wp.exeµÄÖ÷ÒªÈÎÎñÊǽ«ÇëÇ󽻸øһϵÁгÆΪµÄ HTTP ¹ÜµÀµÄÍйܶÔÏó¡£Èç¹û°ÑASP.NET ISAPI±È×öÏúÊÛ¾­Àí£¬ÄÇaspnet_wp.exe¾ÍÊÇÉú²ú¾­Àí£¬¶øHTTP ¹ÜµÀ¾ÍÊÇÉú²úµÄÁ÷Ë®Ïß¡£¸ºÔðÁ÷Ë®ÏßµÄС×é¾ÍÊÇHttpRuntime£¬Éú²ú¾­Àíaspnet_wp.exe»á½«¶©µ¥(HTTPÇëÇó)½»¸øHttpRuntimeС×éµÄ¹¤×÷ÈËÔ±ProcessRequest(HttpWorkerRequest wr)£¬HttpRuntime¸ù¾ÝÄÚ²¿µÄ·Ö¹¤£¬×îÖÕÓÉProcessRequestInternal(HttpWorkerRequest wr)ÔÚÁ÷Ë®ÏßÉϽøÐÐÉú²ú£¬ËùÒÔProcessRequestInternal(HttpWorkerRequest wr)ÊÇÎÒÃÇ·ÖÎöµÄÖص㡣
 ProcessRequestInternalµÄÖ÷Òª¹¤×÷ÊÇ£º
1. ´´½¨HttpContextʵÀý¡£
2. ¶ÔµÚÒ»´ÎÇëÇó½øÐгõʼ»¯(EnsureFirstRequestInit)¡£
a) ÔÚEnsureFirstRequestInitÖÐͨ¹ýµ÷ÓÃSystem.Web.HttpRuntime.FirstRequestInit½øÐÐһЩ³õʼ»¯¹¤×÷£¬±ÈÈ磺½


Ïà¹ØÎĵµ£º

asp.net½«sqlÊý¾Ýµ¼³öexcel±í¸ñ(´úsql×Ö¶ÎÃû)

protected void Button1_Click(object sender, EventArgs e)
{
string strsql = "select * from TreeViewTemp where parentID=0";
DataTable dt = db.GetDataTable(strsql);
StringWriter sw = new StringWriter();
//StreamWriter sw = new Strea ......

Asp.Net ¹¹¼Ü(Http Handler ½éÉÜ) Part.2

Asp.Net ¹¹¼Ü(Http Handler ½éÉÜ) - Part.2
ÒýÑÔ
ÔÚ Part.1 HttpÇëÇó´¦ÀíÁ÷³Ì Ò»ÎÄÖУ¬ÎÒÃÇÁ˽âÁËHttpÇëÇóµÄ´¦Àí¹ý³ÌÒÔ¼°ÆäËüһЩÔË×÷Ô­Àí¡£ÎÒÃÇÖªµÀHttp¹ÜµÀÖÐÓÐÁ½¸ö¿ÉÓýӿڣ¬Ò»¸öÊÇIHttpHandler£¬Ò»¸öÊÇIHttpModule£¬µ«ÔÚPart.1ÖУ¬ÎÒ²¢Ã»ÓÐÏêϸ½²ÊöÈçºÎ¶ÔËüÃǽøÐбà³Ì£¬Ö»ÊÇÇáÃ赭дµØÒ»±Ê´ø¹ý¡£ËùνѧÒÔÖÂÓã¬Ç°ÃæÒÑ ......

SharpDevelop¿ª·¢Asp.net

ÉèÖÃSharpDevelop£¬Ê¹ÆäÄܱàдºÍÔËÐÐAsp.net¡£
ÔÚ¿´ÏÂÎĵÄʱºò£¬ÇëÈ·¶¨ÄúµÄϵͳװÉÏÁËIIS£¬FontPageÀ©Õ¹£¬×°ÁË.Net¿ò¼Ü¡£ºÃÏÖÔÚ¿ªÊ¼ÎҵĽ²Êö¡£
     Èç¹ûÄú×°µÄ.Net¿ò¼ÜÊÇ1.1°æµÄ£¬ÇëÉú³ÉÒÔÏÂBATÎļþ¡£
     Îļþ£ºAsp.Net_1.1_Setup.bat
     c:
  ......

Asp.net ÊÂÎñ´¦Àí

ÊÂÎñ´¦ÀíÊÇÔÚÊý¾Ý´¦Àíʱ¾­³£Óöµ½µÄÎÊÌ⣬¾­³£Óõ½µÄ·½·¨ÓÐÒÔÏÂ3ÖÖ×ܽáÕûÀíÈçÏ£º ·½·¨1£ºÖ±½ÓдÈëµ½sql ÖÐ ÔÚ´æ´¢¹ý³ÌÖÐʹÓà BEGIN TRANS, COMMIT TRANS, ROLLBACK TRANS ʵÏÖ  Óŵ㣺ÊÂÎñÂß¼­°üº¬ÔÚÒ»¸öµ¥¶ÀµÄµ÷ÓÃÖУ¬ÓÐÔËÐÐÒ»¸öÊÂÎñµÄ×î¼ÑÐÔÄÜ£¬Á¢ÓÚÓ¦ÓóÌÐò¡£ÏÞÖÆ£º ÊÂÎñÉÏÏÂÎĽö´æÔÚÓÚÊý¾Ý¿âµ÷ÓÃÖУ¬Êý¾Ý¿â´úÂëÓëÊ ......

ASP.NET Session Ïê½â

SessionÄ£Ðͼò½é
SessionÊÇʲôÄØ£¿¼òµ¥À´Ëµ¾ÍÊÇ·þÎñÆ÷¸ø¿Í»§¶ËµÄÒ»¸ö±àºÅ¡£µ±Ò»Ì¨WWW·þÎñÆ÷ÔËÐÐʱ£¬¿ÉÄÜÓÐÈô¸É¸öÓû§ä¯ÀÀÕýÔÚÔËÕýÔÚÕą̂·þÎñÆ÷ÉϵÄÍøÕ¾¡£µ±Ã¿¸öÓû§Ê״κÍÕą̂WWW·þÎñÆ÷½¨Á¢Á¬½Óʱ£¬Ëû¾ÍºÍÕâ¸ö·þÎñÆ÷½¨Á¢ÁËÒ»¸öSession£¬Í¬Ê±·þÎñÆ÷»á×Ô¶¯ÎªÆä·ÖÅäÒ»¸öSessionID£¬ÓÃÒÔ±êʶÕâ¸öÓû§µÄΨһÉí·Ý¡£Õâ¸öSessionI ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ