Èà ASP.Net MVC µÄURL¿´ÉÏÈ¥Ïñ¸ö´«Í³WebFormµÄURL
ÔÚIIS6Éϲ¿Êð¹ýASP.Net MVCµÄÒ»¶¨ÖªµÀ£¬ÎªÁËÄÜÈÃIIS½«¶ÔASP.Net MVCµÄÇëÇóת·¢¸øASP.Net´¦Àí£¬±ØÐëÌí¼ÓÓ¦ÓóÌÐòISAPIÓ³Éä¡£ ±ÜÃâÕâÖÖÓ³ÉäÌí¼ÓµÄÒ»ÖÖ·½·¨ÊÇÀûÓÃÒÑÓеÄÓ³É䣬ÀýÈç.aspxÀ©Õ¹ÃûµÄÓ³Éä¡£²»¹ýÄÇÑùµÄ»°ASP.Net MVCµÄUrl»áºÜ¡°ÄÑ¿´¡±£¬¡°http://localhost/ASPNETMVCAPP/Account.aspx/Logon/¡±¡£Èç¹ûÄÜ°ÑÆäÖеÄ.aspx·Åµ½ÉÏÃæUrlµÄ×îºó£¬¾Í»á¡°ºÃ¿´¡±ºÜ¶à£¬¡°http://localhost/ASPNETMVCAPP/Account/Logon/default.aspx¡±¡£¶øÇÒ¿´ÆðÀ´¸üÏñ¸ö´«Í³WebFormµÄURL¡£ ҪʵÏÖÕâÑùµÄ¹¦Äܲ¢²»ÄÑ¡£ÔÚUrl RouteÓ³ÉäʱGlobal.asax.csÖÐ×öÈçÏÂÉèÖü´¿É¡£ ÕâÊÇʵÏÖµÄUrlЧ¹û£º ÕâÊÇÔÚÓ¦ÓõÄdefault.aspx.csÖÐ×öµÄÐ޸ġ£ ÕâÑù×öµÄºÃ´¦ÊÇ£¬¿´ÉÏÈ¥Ïñ¸öWebFormÓÐÒ»¶¨µÄÆÛÆÐÔ£¬ÓÖ±£³ÖÁËURLµÄ¡°ÃÀ¹Û¡±£¬URLÖÐÖ¸µÄAspxÒ³Ãæ²¢²»Õæʵ´æÔÚ£¬Ò²ÐíÒ²»á¸ü°²È«Ò»Ð©¡£¶øÇÒ»¹¿ÉÒÔÃâÈ¥ÔÚIIS6ÖеÄISAPI×¢²á£¬Õâ¶ÔÐéÄâÖ÷»úÓû§·Ç³£·½±ã¡£
Ïà¹ØÎĵµ£º
string destFileName = "ok.txt";
destFileName = Server.MapPath(".") + "\\"+destFileName;
destFileName = Server.UrlDecode(destFileName);
&nbs ......
Õâ¸öÊÇÔÚÍøÉÏÕÒµÄÒ»¸ö¹ØÓÚASP.NET MVC µÄ¶¨Ò壬ÎÒ¾õµÃÒѾ½âÊ͵Ĺ»ºÃÁË£¬ËùÒԾͽè¹ýÀ´ÓÃÓÃÁË £¬ºÇºÇ
Ï£ÍûÓÐÐÄѧϰASP.NET MVC µÄÅóÓÑÏÈÊìϤ¶¨Ò壬ÔÚºóÐøµÄÎÄÕÂÖлá¸üÇáËɵÄѧϰASP.NET MVC
ÏÂÃæÎÒÃÇÒ»Æð̤ÉÏASP.NET MVC Ö®Âðɣ¬Ö»ÒªÓкãÐĺÍÒãÁ¦£¬×£Ñ§ÕßÃÇÂÃ;Óä¿ì£¡
The Model-View-Controller (MVC) architectu ......
תÌù×Ô http://wuxiong8665.blog.163.com/blog/static/93512200991811400157/
¸ÅÀÀ£º
Îļþ¼ÐÃû³Æ
ÎļþÀàÐÍ
×¢ ÊÍ
Bin
.dll
°üº¬Ó¦ÓóÌÐòËùÐèµÄÈκÎÔ¤Éú³ÉµÄ³ÌÐò¼¯
App_Browsers
&n ......
ÎåÖÖ³£¼ûµÄASP.NET°²È«È±ÏÝ
±£Ö¤Ó¦ÓóÌÐòµÄ°²È«Ó¦µ±´Ó±àдµÚÒ»ÐдúÂëµÄʱºò¿ªÊ¼×öÆð£¬ÔÒòºÜ¼òµ¥£¬Ëæ×ÅÓ¦ÓùæÄ£µÄ·¢Õ¹£¬ÐÞ²¹°²È«Â©¶´ËùÐèµÄ´ú¼ÛÒ²ËæÖ®¿ìËÙÔö³¤¡£¸ù¾ÝIBMµÄϵͳ¿ÆѧлᣨSystems Sciences Institute£©µÄÑо¿£¬Èç¹ûµÈµ½Èí¼þ²¿ÊðÖ®ºóÔÙÀ´ÐÞ²¹È±ÏÝ£¬Æä´ú¼ÛÏ൱ÓÚ¿ª·¢ÆÚ¼ä¼ì²âºÍÏû³ýȱÏݵÄ15±¶¡£
¡¡¡¡Î ......
ViewDataÓÐÒ»¸öModelStateµÄÊôÐÔ£¬ÕâÊÇÒ»¸öÀàÐÍΪModelStateDictionaryµÄModelStateÀàÐ͵Ä×ֵ伯ºÏ¡£ÔÚ½øÐÐÊý¾ÝÑéÖ¤µÄʱºòÕâ¸öÊôÐÔÊDZȽÏÓÐÓõġ£ÔÚʹÓÃHtml.ValidationMessage()µÄʱºò£¬¾ÍÊÇ´ÓViewData.ModelStateÖмì²âÊÇ·ñÓÐÖ¸¶¨µÄKEY£¬Èç¹û´æÔÚ£¬¾ÍÌáʾ´íÎóÐÅÏ¢¡£ÀýÈçÔÚǰһƪÎÄÕÂASP.NET MVC ÈëÃÅ7¡¢HellperÓëÊý¾ÝµÄÌá ......