ASP.NET 2.0ÔËÐÐÔÀí¼°Æä¹ý³Ì¼òÒª·ÖÎö
¡¾Õª Òª¡¿ ±¾ÎÄ»ùÓÚASP.NET 2.0µÄÔ´´úÂ룬¶ÔASP.NET 2.0ÔËÐÐʱ½øÐÐÁ˼òÒªµÄ·ÖÎö£¬Ï£ÍûÄÜ°ïÖúÄãÀí½âASP.NET 2.0ÖÐÇëÇó´¦Àí¹ý³Ì¼°Ò³Ãæ±àÒëÄ£ÐÍ¡£
¡¡¡¡Ö÷ÒªÀࣺ
¡¡¡¡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½øÐÐһЩ³õʼ»¯¹¤×÷£¬±ÈÈ磺½«Web.ConfigÅäÖöÁµ½µ½RuntimeConfigÖУ¬´ÓbinĿ¼ÖÐ×°ÔØËùÓÐdllÎļþ¡£
¡¡¡¡3. ´´½¨HttpWriterʵÀý¡£
¡¡¡¡4. ͨ¹ýµ÷ÓÃHttpApplicationFactory.GetApplicationInstance´´½¨HttpApplicationʵÀý¡£
¡¡¡¡ÔÚHttpApplicationFactory.GetApplicationInstanceÖÐÓÐÈý¸ö¹Ø¼ü·½·¨£º
HttpApplicationFactory._theAppli
Ïà¹ØÎĵµ£º
<FRAMESET> <FRAME>
<NOFRAMES>
<IFRAME>
¡ö ¿ò¼Ü¸ÅÄî £º
Ëùν¿ò¼Ü±ãÊÇÍøÒ³»Ãæ·Ö³É¼¸¸ö¿ò´°£¬Í¬Ê±È¡µÃ¶à¸ö URL¡£Ö»¡¡Òª <FRAMESET> <FRAME> ¼´¿É£¬¶øËùÓпò¼Ü±ê¼Ç¡¡Òª·ÅÔÚÒ»¸ö×ÜÆðµÄ html µµ£¬Õâ¸öµµ°¸Ö»¼Ç¼Á˸ÿò¼Ü ÈçºÎ»®·Ö£¬²»»áÏÔʾÈκÎ×ÊÁÏ£¬ËùÒÔ²»±Ø·ÅÈë <BODY> ......
1.¹ØÓÚ»º´æ
»º´æÉÏ£¬Êý¾Ý²ãÉϵĻº´æÊDZØÐëµÄ£¬Õâµã²»±Ø¶à˵ÁË¡£
ÁíÒ»¸öºÜÖØÒªµÄÊÇ£ºÊÓͼƬ¶Î»º´æ¡£
ÎҲο¼ÁËÀÏÕÔµÄдµÄÈýƪ¹ØÓÚƬ¶Î»º´æµÄÎÄÕ£º
ÊʺÏASP.NET MVCµÄÊÓͼƬ¶Ï»º´æ·½Ê½£¨ÉÏ£©£ºÆð²½
ÊʺÏASP.NET MVCµÄÊÓͼƬ¶Ï»º´æ·½Ê½£¨ÖУ©£º¸üʵÓõÄAPI
ÊʺÏASP.NET MVCµÄÊÓͼƬ¶Ï»º´æ·½Ê½£¨Ï£©£ºÒ³ÃæÊä³öÔÔò
± ......
ÉÏ´Îд¹ýһƪMVC·ÖÒ³µÄ
×Ô¼ºÓõÄÒ»¸öASP.Net MVC·ÖÒ³ÄóöÀ´·ÖÏíÏÂ
ÏÖÔÚ·¢Ò»¸ö¸Ä½ø°æ
ÀïÃæÓõ½µÄIPagedListÎÒ×Ô¼ºÒ²¼Ç²»ÇåÊÇ´ÓÄÄÀïCOPYÀ´µÄÁË¡£ºÇºÇ
ÕâÀïÎҾͲ»°ÑIPagedListµÄ´úÂëÌù³öÀ´ÁË£¬ÒªÊ¹µÄÏÂÔØDEMO×Ô¼ºÄðɡ£
ºǫ́¶ÔÊý¾ÝµÄ·ÖÒ³
public ActionResult Index([DefaultValue(1)]int p,[DefaultValue(10)]int pages ......
ÏÈÏÂÔØ.net framework2.0ºÍASPAJAXExtSetup.msi
È»ºó°²×° ¼´¿ÉÔËÐÐ
Èç¹ûÐèÒª¿ª·¢AJAX
ÔòÒª°²×°VSºÍAjaxControlToolkit
ÔÚVS¹¤¾ßÏäÖÐн¨±êÇ© ....
.Net Framework 3.5 »·¾³ÏÂÇëÔĶÁ v3.5 »·¾³ÏÂÈçºÎ²¼Öà AJAX »·¾³¡£
ÕâÀïËù˵µÄ»·¾³ÊÇÖ¸°´·þÎñÆ÷¶ËʵÏÖ·½Ê½½øÐеÄÅäÖá£Ó¦¸Ã˵ֻҪ°²×°ÁË ASP.NET AJAX Extensions ¾Í¿É ......