ASP.NET¶àƵµÀÍøÕ¾¼Ü¹¹ÊµÏÖ·½·¨
Ö÷Ìå¼Ü¹¹
¡¡¡¡¸÷ƵµÀ·Ö±ðλÓÚ²»Í¬µÄWeb Project(¾ßÓжÀÁ¢µÄ¶þ¼¶ÓòÃû)£¬²¢½«ËùÓеÄÒµÎñÂß¼ÒÔ¼°Êý¾Ý·ÃÎʹ¦ÄÜ·â×°³ÉClass Library£¬ËùÓÐƵµÀ¹²ÓÃÕâ¸öClass Library¡£
¡¡¡¡ÏÂÃæÏêϸ½éÉÜʵÏÖ·½·¨¡£
¡¡¡¡¼ÙÉèÍøÕ¾ÓÐÈý¸öƵµÀ£¬ÐÂÎÅ¡¢ÂÛ̳ÒÔ¼°²©¿Í£¬¶ÔÓ¦µÄ¶þ¼¶ÓòÃûΪ"news"¡¢"forum"¡¢"blog"¡£³ý´ËÖ®Í⣬»¹ÐèÒªÁíÍⶨÒåÁ½¸öÓòÃû£¬·Ö±ðÓÃÓÚÍøÕ¾Ê×Ò³ÒÔ¼°Óû§×¢²á¡¢µÇ½¹¦ÄÜ(»ùÓÚPassport»úÖÆ£¬±¾ÎĺóÃ潫×÷Ïêϸ½éÉÜ)£¬¶ÔÓ¦ÓòÃûΪ"homepage"¡¢"passport"¡£
¡¡¡¡1.ÅäÖø÷ƵµÀURL
¡¡¡¡a.ÅäÖÃhostsÎļþ
¡¡¡¡ÓÃÎı¾±à¼Æ÷´ò¿ªhostsÎļþ(λÓÚc:\windows»òwinnt\system32\drivers\etc\)£¬¸ÃÎļþÖдæ·Å³õʼµÄÓòÃû½âÎöÐÅÏ¢¡£µ±ÎÒÃÇÔÚä¯ÀÀÆ÷ÖÐÇëÇóij¸öURLʱ£¬ÏµÍ³Ê×ÏÈÔÚhostsÎļþÖвéÕÒÏàÓ¦ÓòÃû£¬Èç¹ûÕÒµ½ÔòÌøתÖÁÖ¸¶¨IP,Èç¹ûûÕÒµ½£¬Ôò½øÒ»²½Ìá½»DNS½øÐÐÓòÃû½âÎö¡£
¡¡¡¡ÅäÖúܼòµ¥£¬¸ñʽÐÎÈç"[IP][¿Õ¸ñ][ÓòÃû]"£¬Ã¿ÌõÊý¾Ý¶ÔÓ¦Ò»ÐС£ÏÂÃæΪÅäÖÃÄÚÈÝ£º
¡¡¡¡192.168.1.2 www.mysite.com
¡¡¡¡192.168.1.2 passport.mysite.com
¡¡¡¡192.168.1.3 news.mysite.com
¡¡¡¡192.168.1.5 forum.mysite.com
¡¡¡¡192.168.1.9 blog.mysite.com
¡¡¡¡Äã¿ÉÄÜÒѾעÒâµ½ÁË£¬¸÷ƵµÀ¶ÔÓ¦ÓÚ²»Í¬µÄIP£¬ÕâÕýÊǸüܹ¹µÄ¿ª·¢Áé»îÐÔËùÔÚ¡£¸÷ƵµÀ(Web Project)¿ÉÒÔ´´½¨ÓÚ²»Í¬µÄ¿ª·¢ÕßµçÄÔ¡£Í¨¹ý½«ÅäÖÃÄÚÈÝͬ²½µ½¸÷̨µçÄÔ£¬¿ÉÒÔ·½±ãµÄÔÚ¸÷ƵµÀ¼ä½øÐÐÒ³Ãæä¯ÀÀ£¬¾ÍÏñÕâЩƵµÀλÓÚÄã×Ô¼ºµÄµçÄÔÒ»Ñù!²ÉÓÃÕâÖÖ·½Ê½¿ÉÒÔ¼«´ó½µµÍ¿ª·¢ñîºÏÐÔ£¬Ã¿¸öƵµÀ¶¼ÊÇÒ»¸ö¶ÀÁ¢µÄÄ£¿é£¬Ò»¸öƵµÀÖеÄBug²»»áÓ°Ïìµ½ÁíÒ»¸öƵµÀ¡£
¡¡¡¡b.ÅäÖÃWeb.Config
¡¡¡¡¿¼Âǵ½¸÷ƵµÀ¶þ¼¶ÓòÃûÓпÉÄܽøÐе÷Õû£¬½«ÏàÓ¦ÅäÖÃÐÅÏ¢´æ·ÅÓÚWeb.ConfigÎļþÊÇÒ»¸öºÃ°ì·¨¡£Í¬ÑùµÄ£¬¸ÃÅäÖÃÐÅÏ¢±ØÐëͬ²½µ½¸÷Web Project¡£ÏÂÃæΪÅäÖÃÄÚÈÝ£º
£¼add key="SiteDomainName" value="mysite.com"/£¾
£¼add key="HomepageSiteURL" value="http://www.mysite.com/homepage/"/£¾
£¼add key="PassportSiteURL" value="http://passport.mysite.com/passport/"/£¾
£¼add key="NewsSiteURL" value="http://news.mysite.com/news/"/£¾
£¼add key="ForumSiteURL" value="http://forum.mysite.com/forum/"/£¾
£¼add key="BlogSiteURL" value="http://blog.mysite.com/blog/"/£¾
£¼add key="LocalSiteURL" value="/blog/"/£¾
¡¡¡¡¸÷ÅäÖÃÏî˵Ã÷ÈçÏÂ
¡¡¡¡SiteDomainName:Õ¾µãÓòÃû£¬ÐÎÈç"
Ïà¹ØÎĵµ£º
1¡¢ASP.NETÖеÄAJAXÓ¦Óÿª·¢×ܽá
http://blog.csdn.net/zhoufoxcn/archive/2009/12/07/4954645.aspx
2¡¢ÓÃ×Ô¶¨ÒåIHttpModuleʵÏÖURLÖØд
http://blog.csdn.net/zhoufoxcn/archive/2009/07/14/4346356.aspx
3¡¢°ÑC#Öз½·¨ÖØÔØ˵͸
http://blog.csdn.net/zhoufoxcn/archive/2008/09/09/2902078.aspx
4¡¢.net ʵÏÖ URLÖØ ......
Introduction
Before explaining cache management in ASP.NET, let me clarify that different people use different terms for explaining the same concept i.e. managing data. Some people refer to it as state management and some others refer to it as cache management. I love to use the term cache manageme ......
ASP.NET MVC FrameworkÊÇ΢Èí¹Ù·½ÌṩµÄMVCģʽ±àдASP.NET WebÓ¦ÓóÌÐòµÄÒ»¸ö¿ò¼Ü.ÒÑÓÚ2009Äê3ÔÂ19ÈÕÕýʽ·¢²¼. MVC(Model-View-Controller)ÓÃÓÚ±íʾһÖÖÈí¼þ¼Ü¹¹Ä£Ê½.Ëü°ÑÈí¼þϵͳ·ÖΪÈý¸ö»ù±¾²¿·Ö:Ä£ÐÍ(Model),ÊÓͼ(View)ºÍ¿ØÖÆÆ÷(Controller). ¼ÈÈ»ÊÇÒ»¸öÓÅÐãµÄ¿ò¼Ü£¬ÄÇô¾ÍÖµµÃȥѧϰһ°Ñ£¬ÍøÉÏËÑË÷ÁËÐí¶à×ÊÁÏ£¬Ï£Íû¶ÔÓ ......
ºÃ¶àÈ˶ÔÏà¶Ô·¾¶Óë¾ø¶Ô·¾¶ÀÏÊÇ»ìÏý¼Ç²»Çå³þ£¬ÎÒ´ÓÕûÀíÁËһϣ¬Ï£Íû¶Ô´ó¼ÒµÄÈÏʶÓаïÖú¡£
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1.Request.ApplicationPath->µ±Ç°Ó¦ÓõÄĿ¼
JspÖÐ, ApplicationPathÖ¸µÄÊǵ±Ç°µÄapplication(Ó¦ÓóÌÐò)µÄĿ¼,ASP.NETÖÐÒ²ÊÇÕâ¸öÒâ˼¡£
¶ÔÓ¦ ......
ÏÂͼÖкìÉ«¼ýÍ·ÊǸ¸Àà ¶øÇÒÊôÓÚ¸ùĿ¼¼¶±ð¡£
¡¡¡¡ÏÂÃæ¸ö×Ö¶ÎΪ£ºID¡¡¡¡¸¸ID¡¡ ÀàÐÍÃû³Æ¡¡ Éî¶È¡¡ ÅÅÐò
¡¡¡¡Ç°Ãæ3¸ö×Ö¶ÎûÓÐʲô¿É½âÊ͵ģ¬×ö¹ýÎÞÏÞ¼¶·ÖÀàÉè¼ÆµÄÈ˶¼Ó¦¸ÃÇå³þ
¡¡¡¡¶øµÚ5¸ö×Ö¶ÎÅÅÐò×Ö¶ÎID£º43µÄ23ÅÅÐò´ú±íËûÔÚÕâÕűíÅÅÔÚ23µÄ¸ùĿ¼
¡¡¡¡¶ø23ÏÂÃæµÄ23,01 ˵Ã÷ËûÊÇ2¼¶·ÖÀ࣬ÅÅÔÚ23ÏÂÃæµÄµÚ01¸ö£¬Ò²ÊÇÖ§³Ö99¼ ......