ASP.NET Ò³Ãæ¶ÔÏóÄ£ÐÍ
¼ò½é
Microsoft Internet ÐÅÏ¢·þÎñ (IIS) ËùÊÕµ½µÄ¶Ôij Microsoft ASP.NET Ò³ÃæµÄÿ¸öÇëÇ󶼱»Òƽ»¸ø ASP.NET HTTP ¹ÜÏß¡£HTTP ¹ÜÏßÓÉһϵÁÐÍйܶÔÏó×é³É£¬ÕâЩ¶ÔÏó°´Ë³Ðò´¦Àí¸ÃÇëÇ󣬲¢Íê³É´Ó URL µ½ÆÕͨ HTML Îı¾µÄת»»¡£HTTP ¹ÜÏßµÄÈë¿ÚµãÊÇ HttpRuntime Àà¡£ASP.NET »ù´¡½á¹¹Îª¸¨Öú½ø³ÌÖÐËù³ÐÔصÄÿ¸ö AppDomain ´´½¨´ËÀàµÄÒ»¸öʵÀý£¨Çë×¢Ò⣬¸Ã¸¨Öú½ø³ÌΪµ±Ç°ÕýÔÚÔËÐеÄÿ¸ö ASP.NET Ó¦ÓóÌÐòά»¤Ò»¸ö²»Í¬µÄ AppDomain£©¡£
HttpRuntime Àà´ÓÄÚ²¿³ØÖÐÑ¡È¡Ò»¸ö HttpApplication ¶ÔÏ󣬲¢ÈÃÆä´¦Àí¸ÃÇëÇó¡£HTTP Ó¦ÓóÌÐò¹ÜÀíÆ÷ËùÍê³ÉµÄÖ÷ÒªÈÎÎñ¾ÍÊÇÕÒ³ö½«Êµ¼Ê´¦Àí¸ÃÇëÇóµÄÀà¡£Èç¹ûÇëÇó .aspx ×ÊÔ´£¬Ôò´¦Àí³ÌÐò¾ÍÊÇÒ»¸öÒ³Ãæ´¦Àí³ÌÐò — ¼´Ä³¸ö¼Ì³Ð×Ô Page µÄÀàµÄÒ»¸öʵÀý¡£×ÊÔ´ÀàÐͺʹ¦Àí³ÌÐòÀàÐÍÖ®¼äµÄ¹ØÁª¹Øϵ´æ´¢ÓÚ¸ÃÓ¦ÓóÌÐòµÄÅäÖÃÎļþÖС£¸ü׼ȷµØ˵£¬ÔÚ machine.config ÎļþµÄ <httpHandlers> ²¿·ÖÖж¨ÒåĬÈϵÄÒ»×éÓ³Éä¹Øϵ¡£È»¶ø£¬Ó¦ÓóÌÐòÒ²¿ÉÒÔÔÚ±¾µØµÄ web.config ÎļþÖÐ×Ô¶¨Òå×Ô¼ºµÄ HTTP ´¦Àí³ÌÐòÁÐ±í¡£ÏÂÃæµÄ³ÌÐòÐоÙÀý˵Ã÷Á˶¨ÒåÓÃÓÚ .aspx ×ÊÔ´µÄ HTTP ´¦Àí³ÌÐòµÄ´úÂë¡£
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory"/>
À©Õ¹Ãû¿É¹ØÁªµ½Ò»¸ö´¦Àí³ÌÐòÀ࣬»òÕ߸üÆÕ±éµØ¹ØÁªµ½Ò»¸ö´¦Àí³ÌÐò¹¤³§ (handler factory) Àà¡£ÔÚËùÓÐÇé¿öÏ£¬¸ºÔð´¦ÀíÇëÇóµÄ HttpApplication ¶ÔÏ󶼻á»ñµÃÒ»¸öʵÏÖ IHttpHandler ½Ó¿ÚµÄ¶ÔÏó¡£Èç¹û¸ù¾Ý HTTP ´¦Àí³ÌÐòÀ´½âÎö¹ØÁª×ÊÔ´/À࣬ÄÇôËù·µ»ØµÄÀཫֱ½ÓʵÏָýӿڡ£Èç¹û×ÊÔ´°ó¶¨µ½´¦Àí³ÌÐò¹¤³§£¬ÔòÐèÒªÁíÍâÒ»¸ö²½Öè¡£´¦Àí³ÌÐò¹¤³§ÀàʵÏÖ IHttpHandlerFactory ½Ó¿Ú£¬¶ø¸Ã½Ó¿ÚµÄ GetHandler ·½·¨·µ»ØÒ»¸ö»ùÓÚ IHttpHandler µÄ¶ÔÏó¡£
HTTP ÔËÐÐʱÈçºÎÄÜÍê³ÉÕû¸öÑ»·²¢´¦ÀíÒ³ÃæÇëÇóÄØ£¿IHttpHandler ½Ó¿ÚÌرðÌṩÁË ProcessRequest ·½·¨¡£Í¨¹ý¶Ô´ú±íËùÇëÇóÒ³ÃæµÄ¶ÔÏóµ÷Óô˷½·¨£¬ASP.NET »ù´¡½á¹¹Æô¶¯ÏàÓ¦¹ý³Ì£¬´Ó¶øÕë¶Ôä¯ÀÀÆ÷Éú³ÉÊä³ö¡£
ÕæÕýµÄ Page Àà
Ìض¨Ò³ÃæµÄ HTTP ´¦Àí³ÌÐòÀàÐÍÈ¡¾öÓÚ URL¡£µ±Ê״ε÷Óà URL ʱ£¬½«¹¹½¨Ò»¸öÐÂÀಢ½«¸ÃÀද̬µØ±àÒë³ÉÒ»¸ö³ÌÐò¼¯¡£ÓÃÓÚ¼ì²é .aspx À´Ô´µÄÓï·¨·ÖÎö¹ý³ÌµÄÊä³ö½á¹û¾ÍÊǸÃÀàµÄÔ´´úÂë¡£¸ÃÀà±»¶¨ÒåΪ ASP ÃüÃû¿Õ¼äµÄÒ»²¿·Ö£¬²¢±»¸³ÓèÒ»¸öÓëÔʼ URL ÏàËƵÄÃû³Æ¡£ÀýÈ磬Èç¹û URL ÖÕ½áµãÊÇ page.aspx£¬ÔòÀàÃû³ÆΪ ASP.Page_aspx¡£µ«ÊÇ£¬Ò²¿Éͨ¹ý±à³ÌÉèÖà @Page Ö¸ÁîµÄ ClassName ÊôÐÔÀ´¿ØÖÆÀàµÄÃû³Æ¡£
HTTP ´
Ïà¹ØÎĵµ£º
µ±ÄãÊǴӰٶȻògoogleËÑË÷ ¹Ø¼ü´Ê"ASP.NETºËÐļ¼Êõ","£®NETºËÐļ¼Êõ"¹ýÀ´µÄ»°,ÎÒºÜÏë±ÉÊÓÄãÒ»ÏÂ,ÕæµÄ,ÒòΪÎÒÓöµ½Ì«¶àµÄÕâÑùµÄÈËÁË,"ASP.NETºËÐļ¼Êõ","£®NETºËÐļ¼Êõ"ÕâÑùµÄÎÊÌâÕæµÄû±ØÒªÎÊ,ÓÐÒâ˼Âð,»ù´¡Åª¶®ÁËÂð,¾«Í¨ÁËasp.netÂð,»¹²»ÈçÎÊÎÊ"ASP.NET»ù´¡ÊÇʲô",»ù´¡¶¼Ã»ÓÐŪ¶®,¾ÍÒ»Ììµ½ÍíÔÚÄÇ×·ÇóºËÐÄÊÇʲô,ÕâЩ ......
±êÇ©£ºxml .net¡¡¡¡¡¡[ÍÆË͵½¼¼ÊõȦ]
loveqq2004
<?xml version="1.0" encoding="utf-8" ?>
<files>
<file>
<name>4.dll</name>
&nb ......
Ê×ÏÈ¿´ÏÂXML½á¹¹
<?xml version="1.0" encoding="utf-8"?>
<corplist>
<corp>
<linkname>³ÂÏÈÉú</linkname>
<corpname>XXXXXXXXX¹«Ë¾</corpname>
<email>xxxxx@126.com</email>
</corp>
<corp>
<linknam ......
TextBox Web ·þÎñÆ÷¿Ø¼þΪÓû§ÌṩÁËÒ»ÖÖÏò ASP.NET ÍøÒ³ÖмüÈëÐÅÏ¢£¨°üÀ¨Îı¾¡¢Êý×ÖºÍÈÕÆÚ£©µÄ·½·¨¡£
Ò»¡¢±³¾°
TextBox ·þÎñÆ÷¿Ø¼þÊÇÈÃÓû§ÊäÈëÎı¾µÄÊäÈë¿Ø¼þ¡£Ä¬ÈÏÇé¿öÏ£¬¸Ã¿Ø¼þµÄ TextMode ÊôÐÔÉèÖÃΪ TextBoxMode.SingleLine£¬Õ⽫ÏÔʾһ¸öµ¥ÐÐÎı¾¿ò¡£µ«¿ÉÒÔ½« TextMod ......