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½øÐÐһЩ³õʼ»¯¹¤×÷£¬±ÈÈ磺½
Ïà¹ØÎĵµ£º
ÔÚÒ»¸öСÐÍÏîÄ¿ÖУ¬ÎÒʹÓÃÁËAjax ExtensionsÖеÄUpdatePanel¿Ø¼þ£¬ÔÚ±¾µØµ÷ÊÔÔËÐÐʱºÃµÄ£¬¿ÉÒÔ¿´µ½ajaxµÄÒ첽ˢÐÂЧ¹û£¬µ«Êǵ±·¢²¼µ½°²×°ÁË.net framework 3.5 sp1µÄserver 2003ÉÏÈ¥Ö®ºó£¬·¢ÏÖajaxЧ¹ûûÓÐÁË£¬Ò²¾ÍÊÇ˵±¾À´µÄÒì²½Ìá½»±ä³ÉÁË·ÇAjax·½Ê½µÄPOST£¬¶øÇÒûÓб¨¸æÈκδíÎó¡£
¶Ô±È¿ª·¢Ê±ºÍÔËÐÐ ......
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 ......
a. ReportViewer¹ØÁªReport1.rdlcµÄ¼òµ¥³ÊÏÖ
b. ¶Ô´øÓб¨±í²ÎÊýµÄReport1.rdlcµÄ³ÊÏÖ
c.
ÀûÓóÌʽÉú³ÉµÄDataSet Ìî³ä±¨±í
d. µ÷Óô洢¹ý³Ì Éú³ÉDataSet Ìî³ä±¨±í
==========
¼òµ¥µÄ³ÊÏÖ
==========
1. ´ò¿ªVS2005£¬Îļþ->н¨->ÍøÕ¾ Ñ¡ÔñÓïÑÔÖÖÀࣨC#£©
2. Ôڸýâ¾ö·½°¸ÏÂ
Éè¼ÆÆäÒѾÉú³ÉµÄDefault.aspx ......
ASP.NETÒ³ÃæÌøתÓÐʲô·½·¨ÄØ£¿£¬ÏÖÔÚ¸ø´ó¼Ò½éÉÜÈýÖÖ·½·¨£¬ËûÃǵÄÇø±ðÊÇʲôÄØ£¿ÈÃÎÒÃÇ¿ªÊ¼°É£º ASP.NETÒ³ÃæÌøת1¡¢response.redirect Õâ¸öÌøתҳÃæµÄ·½·¨ÌøתµÄËٶȲ»¿ì£¬ÒòΪËüÒª×ß2¸öÀ´»Ø(2´Îpostback)£¬µ«Ëû¿ÉÒÔÌøתµ½ÈκÎÒ³Ã棬ûÓÐÕ¾µãÒ³ÃæÏÞÖÆ(¼´¿ÉÒÔÓÉÑÅ»¢Ìøµ½ÐÂÀË)£¬Í¬Ê±²»ÄÜÌø¹ýµÇ¼±£»¤¡£µ«ËÙ¶ÈÂýÊÇÆä×î´óȱÏÝ!r ......