´ÓASP.NETÓ¦ÓóÌÐòÉú´æÖÜÆÚ̸Æð(2)
ÄÇôͨ¹ýÒÔÉϵÄ˵Ã÷£¬ÎÊÌâ¶þ£ºÎÒÃÇÔõô֪µÀIISºÍASP.NET ISAPIµ½µ×ÊÇÔõÑù¹¤×÷µÄ£¿
ASP.NET Process ModelÖ®Ò»£ºIIS ºÍ ASP.NET ISAPI
Ç°¼¸ÌìÓÐÒ»¸öÅóÓÑÔÚMSNÉÏÎÊÎÒ“ASP.NET ´Ó×î³õµÄ½ÓÊÕµ½Http requestµ½×îÖÕÉú³ÉResponseµÄÕû¸öÁ÷³Ìµ½µ×ÊÇÔõÑùµÄ£¿”ÎÒ¾õµÃÕâ¸öÎÊÌâÉæ¼°µ½IISºÍASP.NETASP.NET RuntimeµÄ´¦ÀíÄ£Ð͵ÄÎÊÌ⣬²¢²»ÊÇÈýÑÔÁ½Óï¾ÍÄÜ˵Çå³þµÄ£¬ËùÒÔ¾ö¶¨Ð´ÕâÑùһƪ½éÉÜIISºÍASP.NET Runtime Process ModelµÄÎÄÕ£¬Ì¸Ì¸ÎҶԴ˵ÄÒ»¸ö´ÖdzµÄÈÏʶ£¬Èç¹ûÓÐʲô²»¶ÔµÄµØ·½£¬Ï£Íû´ó¼Ò¼°Ê±Ö¸Õý¡£
ÕâƪÎÄÕ´óÌå·ÖΪÁ½¸ö²¿·Ö£¬µÚÒ»²¿·ÖÎÒ½«Ì¸Ì¸IISµÄÁ½¸ö²»Í¬µÄ°æ±¾—IIS 5.x ºÍ IIS 6£¨ËäÈ»IIS 7ÒѾReleaseºÜ³¤Ê±¼äÁË£¬¶øÇÒ½Ï֮ǰÁ½¸ö°æ±¾·¢ÉúÁ˷dz£´óµÄ±ä»¯£¬ÓÉÓÚ±¾ÈËȱ·¦¶ÔIIS 7ÉîÈëµÄÁ˽⣬ËùÒÔÔÚÕâÀï¾Í²»ÔÙ½éÉÜÁË£¬²»¹ýÒÔºóÎÒ½«Õâ·½ÃæµÄÄÚÈݲ¹ÉÏ£©µÄ´¦ÀíÄ£ÐÍ£ºIISÈçºÎ¼àÌýÀ´×ÔÍâ½çµÄHttp request£¬ÈçºÎ¸ù¾ÝISAPI Extension Mapping½«¶ÔÓÚ²»Í¬ResourceµÄÇëÇó·Ö·¢¸ø²»Í¬µÄISAPI Extension£¬»ùÓÚASP.NET ResourceµÄASP.NET ISAPIÈçºÎ½«Request´«µÝ¸øASP.NET Runtime »·¾³¡£µÚ¶þ²¿·Ö½«×ÅÖؽéÉÜÔÚÒ»¸öÍйܵÄASP.NET Runtime »·¾³¶Ô´«ÈëµÄHttp requestµÄ´¦Àí¹ý³Ì¡£ÎÒÃÇÏÈÀ´¿´¿´IIS 5.xºÍIIS 6µÄ´¦Àí¹ý³Ì¡£
1£® Ò»¡¢IIS 5.x based Process Model
IIS 5.xÒ»¸öÏÔÖøµÄÌØÕ÷¾ÍÊÇWeb ServerºÍÕæÕýµÄASP.NET ApplicationµÄ·ÖÀë¡£×÷ΪWeb ServerµÄIISÔËÐÐÔÚÒ»¸öÃûΪInetInfo.exeµÄ½ø³ÌÉÏ£¬InetInfo.exeÊÇÒ»¸öNative Executive£¬²¢²»ÊÇÒ»¸öÍйܵijÌÐò£¬¶øÎÒÃÇÕæÕýµÄASP.NET ApplicationÔòÊÇÔËÐÐÔÚÒ»¸ö½Ð×öaspnet_wpµÄWorker ProcessÉÏÃ棬Ôڸýø³Ì³õʼ»¯µÄʱºò»á¼ÓÔØCLR£¬ËùÒÔÕâÊÇÒ»¸öÍйܵĻ·¾³¡£ÎÒÃǽÓÏÂÀ´½«Ì¸ÂÛaspnet_wpÈçºÎ´´½¨£¬aspnet_wpºÍInetInfo.exeÈçºÎ½øÐÐͨÐÅ£¬ÒÔ¼°¼òµ¥½éÉÜÔÚaspnet_wpÖУ¬ÈçºÎ½«Request µ¼ÈëASP.NET Rutime Pipeline¡£
ÎÒÃÇͨ¹ý´´½¨ÐéÄâĿ¼½«×ÊÔ´Hostµ½IISÏ£¬ÔÔòÉÏ£¬ÎÒÃÇ¿ÉÒÔͨ¹ýIIS·ÃÎÊÖÃÓÚÐéÄâĿ¼ÏµÄËùÓÐResource£¬Õⲿ½ö½ö°üº¬Ò»Ð©¾²Ì¬×ÊÔ´Îļþ£¬±ÈÈçͼƬ¡¢´¿HtmlÎļþ¡¢CSS¡¢JSµÈµÈ£¬Ò²°üº¬Ò»Ð©ÐèÒª¶¯Ì¬Ö´ÐеÄÎļþ£¬±ÈÈçaspx£¬asmxµÈµÈ£¬ÎÒÃÇ»¹¿ÉÒÔ½«RemotingºÍWCF Service Hostµ½IISÏ¡£¶ÔÓÚÕâЩ¾²Ì¬µÄÎļþ£¬IISÖ±½ÓÌáÈ¡¶ÔÓ¦µÄÎļþ½«Æä×÷ΪHttp Response·µ»Ø¸øClient£¬µ«ÊǶÔÓ
Ïà¹ØÎĵµ£º
c#£¨»òvb.net£©³ÌÐò¸Ä½ø
1¡¢Ê¹ÓÃÖµÀàÐ͵ÄToString·½·¨
¡¡¡¡ÔÚÁ¬½Ó×Ö·û´®Ê±£¬¾³£Ê¹ÓÃ"+"ºÅÖ±½Ó½«Êý×ÖÌí¼Óµ½×Ö·û´®ÖС£ÕâÖÖ·½·¨ËäÈ»¼òµ¥£¬Ò²¿ÉÒԵõ½ÕýÈ·½á¹û£¬µ«ÊÇÓÉÓÚÉæ¼°µ½²»Í¬µÄÊý¾ÝÀàÐÍ£¬Êý×ÖÐèҪͨ¹ý×°Ïä²Ù×÷ת»¯ÎªÒýÓÃÀàÐͲſÉÒÔÌí¼Óµ½×Ö·û´®ÖС£µ«ÊÇ×°Ïä²Ù×÷¶ÔÐÔÄÜÓ°Ïì½Ï´ó£¬ÒòΪÔÚ½øÐÐÕâÀà´¦Àíʱ£¬½«ÔÚÍйܶÑÖÐ ......
1£¬±¾µØÉú³ÉµÄÎļþÏòIIS¹«¿ªµÄ·¾¶Öи´ÖÆ£¬ÓÐʱ»á·¢Éú°²È«´íÎó£¬ÕâÊÇÒòΪĿ±êÎļþ¼ÐÏ£¬Ã»ÓÐȨÏÞ£¬¿ÉÒÔ¿¼ÂÇÉèÖÃEveryoneȨÏÞ,µ«Çë½÷É÷ʹÓá£
2£¬LoadÒ³ÃæµÄʱºòÈç¹û·¢Éú “ûÓÐÕÒµ½Îļþ”ÕâÑùµÄ´íÎ󣬾ÍÐèÒª²é¿´ÄãдÈëǰ̨µÄ¸÷¸öÎļþ·¾¶ÊÇ·ñÕýÈ·£¬°üÀ¨Í¼Æ¬£¬CSSÎļþ£¬jsÎļþµÈµÈ¡£
3£¬ASP ÔÚLoadÒ³ÃæµÄ¹ý³Ì£¬Ê ......
ÕâÀï²»ÊÇÖ¸µ÷Óüòµ¥µÄ PageMethod£¬ÒòΪ¾²Ì¬·½·¨ÊDz»ÄܲÙ×÷µ±Ç°Ò³ÃæµÄ¿Ø¼þµÄ£¬ËùÒÔ¾²Ì¬µÄ PageMethod ×÷Óþ͸úÆÕͨµÄ WebService Ò»Ñù£¬±È½Ï¾ÖÏÞ¡£
ÄÇô£¬µ÷ÓÃÒ»°ãµÄ·þÎñÆ÷¶Ë·½·¨£¬Æäʵ¾ÍÊÇ·¢ÆðÒ»¸öÒì²½»Øµ÷¡£×î¼òµ¥µÄʵÏÖ°ì·¨£¬ÊÇͨ¹ý UpdatePanel À´×ö¡£
Ê×Ïȶ¨ÒåÒ»¸öÒþ²ØµÄ LinkButton£¬ÔÚÆä´¦ÀíʼþÖУ¬È¥µ÷ÓÃÎÒÃÇÒªÖ ......
ʹÓÃcscÃüÁ.csÎļþ±àÒë³É.dllµÄ¹ý³Ì
ºÜ¶àʱºò,ÎÒÃÇÐèÒª½«.csÎļþµ¥¶À±àÒë³É.dllÎļþ, ²Ù×÷ÈçÏÂ:
´ò¿ªÃüÁî´°¿Ú->ÊäÈëcmdµ½¿ØÖÆ̨->cd C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
תµ½vs.net°²×°µÄ¸ÃĿ¼ÏÂ->Ö´ÐÐcscÃüÁîcsc /target:library File.cs->ÔÚ¸ÃĿ¼Ï²úÉúÒ»¸ö¶ÔÓ¦Ãû×ÖµÄ.dllÎļþ(Ç°Ìá:°Ñ. ......
ÔÚasp.netÖÐʹÓÃfckeditor ,Ò³ÃæʹÓÃthemʱ,ͨ¹ý±à¼Æ÷ÉÏ´«Í¼Æ¬»òÎļþÌáʾ
"Using themed css files requires a header control on the page"
½â¾ö°ì·¨:
ÔÚfckeditorµÄweb.configÎļþÖÐ×öÈçÏÂÐÞ¸Ä
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<pages styleSheet ......