Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.net mvc 2.0²¿Êð

IIS 7
IIS7×ÔÉíÓжÔMVCµÄÖ§³Ö£¬²¿Êð·½·¨Í¬ÆäËûweb application»ù±¾Ïàͬ£¬ÐèҪעÒâµÄÊÇ£¬mvc 2.0 applicationÔÚHandler MappingsÀïÃæ»áÓÐMvcHttpHandler£¬Èçͼ£º
ÎÒʹÓõÄÊÇ.net 4.0£¬ÎÒ¿´ÁËÆäËû.net 2.0 µÄweb appliationϵÄHandler Mappings¶¼Ã»ÓÐÕâ¸öhandler maping¡£
×¢Ò⣺.net 3.5ÒÔÏ£¨°üÀ¨£©µÄweb application pool¶¼ÊÇ.net 2.0°æ±¾µÄ£¬µ±È»¿ÉÄÜ»¹°üÀ¨.net 1.0»ò.net 1.1°æ±¾¡£µ«ÔÚ.net 4.0Ï£¬ÌṩÁËasp.net 4.0£¬Òò´ËʹÓÃ.net 4.0µÄweb applicationÆäapplication poolºÜÓпÉÄÜÐèÒª.net 4.0»·¾³¡£
Äã¿ÉÒÔͨ¹ý²é¿´Ó¦ÓóÌÐò³ØÀ´²é¿´ÔËÐеÄÊÇ.net 2.0»¹ÊÇ.net 4.0¡£
ÔÚ²¿Êðmvc 2.0 applicationʱ£¬Èç¹ûÄãʹÓõÄÊÇ.net 4.0¿ª·¢µÄ£¬ÆäËùÔÚapplication pool±ØÐëÊÇ.net 4.0µÄ£¬²¢ÇÒmanaged pipeline modeΪintegrated¡£
IIS 6²¿Êð
IIS6µÄ²¿Êð»á±ÈIIS7Â鷳һЩ£¬ÎÒÒÔÎÒµÄʵ¼Ê²¿Êð¹ý³ÌÀ´½²°É£¬µ±È»¸Õ¿ªÊ¼Ò²³öÏÖ404»ò·þÎñÆ÷´íÎóµÈÎÊÌ⣬²»¹ýºÃÔÚ×îºó¶¼½â¾öÁË£¬ÏÂÃæÊÇÕýÈ·µÄ²¿Êð·½Ê½¡£
ÎÒÊÇÔÚ.net 4.0»·¾³Ï£¬Ê¹ÓÃVS 2010¿ª·¢µÄ£¬ÐèÒª²¿Êðµ½window server 2003ÉÏ(IIS6)¡£Ô­ÏµÍ³×°µÄÊÇ.net 3.5µÄ£¬Òò´Ë´ÓÎҵĻúÆ÷ÉÏVSµÄ°²×°°üĿ¼VS2010Ultimate_RC1\WCU\dotNetFrameworkϵÄ.net 4.0»·¾³dotNetFx40_Full_x86_x64.exe¿½±´µ½·þÎñÆ÷£¬È»ºó°²×°¡£
MVC 2.0ÊDz»°üº¬ÔÚ.net 4.0ÀïÃæµÄ£¬Òò´ËÐèÒªÊÖ¶¯ÏÂÔØ°²×°£¨ÆäʵÖ÷ÒªÊÇSystem.Web.Mvc.dllÎļþ£©£¬ÎҵĻúÆ÷ÉÏÖ±½Ó×°µÄvs 2010ËùÓж¼°üº¬ÔÚÀïÃæÁË¡£ÎÒûÓÐÔÚ·þÎñÆ÷ÉÏ°²×°mvc 2.0£¬¶øÊDzÉÓÃÁ˓˽Óв¿Ê𔣬һ°ãweb applicationÌí¼ÓµÄ.net»·¾³ÏµÄdllʱ£¬Èçsystem.dllµÈ£¬µ±ÄãÔÚ·¢²¼Ê±£¬ÕâЩdllÊDz»»á¿½±´µ½·¢²¼ºóµÄbinĿ¼µÄ£¬Òò´ËÎÒʹÓÓ˽Óв¿Ê𔣬½«ÕâЩdllÎļþ£¬°üÀ¨System.Web.MVC.dllÎļþÒѾ­·¢²¼µ½binĿ¼Ï£¬ÕâÑùÓ¦ÓóÌÐòÔËÐÐʱÔÚGACÖÐÕÒ²»µ½Õâ¸ödllµÄʱºò¾Í¿ÉÒÔÔÚbinÖÐÕÒµ½ÁË¡£ÄãÐèÒª×öµÄ¾ÍÊÇ£¬ÔÚÒýÓõēCopy local”ÊôÐÔÉèΪ“true”¼´¿É¡£µ±È»Èç¹ûÄã²»ÏÓÂé·³Ò²¿ÉÒÔÊÖ¶¯´ÓGACÖн«ÕâЩDLLÎļþ¿½±´µ½·¢²¼ºóµÄbinĿ¼Ï¡£ÆäʵÕâ»°System.web.extension.dll²î²»¶à£¬Èç¹ûÓ¦ÓóÌÐòûÓÐ×°asp.net ajaxʱҲÐèÒª½«Õâ¸ödll¿½±´µ½binĿ¼¡£
ÏÂÃæ¾ÍÊÇÔÚ·þÎñÆ÷ÉÏ´´½¨Õ¾µãÁË£¬Õ¾µãµÄ´´½¨ºÍÆäËû.net 2.0 web applicationÒ»Ñù£¬²î±ðÔÚÓÚÅäÖúÍasp.net»·¾³ÉÏ¡£
µã»÷“ÅäÖÔ°´Å¥£¬ÔÚ“Ó³Éä”Ñ¡ÏÖеēͨÅä·ûÓ¦ÓóÌÐòÓ³É䔵ã»÷


Ïà¹ØÎĵµ£º

asp.netµ¯³öÈ·¶¨»ò¾¯¸æ

ÔÚûÓÐ<asp:UpdatePanel ID="up" runat="server"> <ContentTemplate>ÎÞˢл·¾³ÖУº
      Response.Write("<script>alert('¹§Ï²Äú£¬Òѳɹ¦¼ÓÈëµ½ÄúµÄÈ˲ſ⣡');</script>");
ÔÚÓÐ<asp:UpdatePanel ID="up" runat="server"> <ContentTemplate>ÎÞˢл·¾³Ö ......

Ìá¸ßasp.net ajaxÓ¦ÓóÌÐòÐÔÄܵÄһЩ·½·¨

1. Êʵ±Ê¹ÓÃUpdatePanel
2. ÀûÓÃWebService·½·¨¶¯Ì¬Éú³ÉÓû§¿Ø¼þµÄÄÚÈÝ£¬±ÜÃâUpdatePanel»Ø´«Ôì³ÉµÄÐÔÄÜËðʧ£¨ViewState£©
3. ToolkitScriptManager´úÌæScriptManager
4. <asp:ScriptManager runat="server" ID="sm" ScriptMode="Release" EnablePartialRendering="false"
......

ASP.NET MVC2 ѧϰ±Ê¼ÇÖ®URL·ÓÉ

    н¨Ò»¸öĬÈϵÄASP.NET MVC2Ó¦ÓóÌÐò£¬ÏµÍ³»áĬÈϵÄÉú³É°üº¬»ù±¾¹¦ÄܵÄÓ¦ÓóÌÐò£¬²é¿´ÕâЩÉú³ÉµÄ´úÂ룬¿É°ïÖúÎÒÃÇÀí½âASP.NET MVC2¡£ÏÂÃæÊǶÔURL·ÓɵÄÀí½â£¬ÒÔ±¸Íü¡£
Ò»¡¢Global.asax.csÖеĴúÂ룺
public class MvcApplication : System.Web.HttpApplication
    {
  &n ......

asp.net ajaxÖÐÎÄÂÒÂëµÄ½â¾ö£¿2010 01 19 12:06

asp.net ajaxÖÐÎÄÂÒÂëµÄ½â¾ö£¿
2010-01-19 12:06
ÒÔǰûÔõô×ÐϸµÄÑо¿¹ýajax,Ö»ÊÇÓõ½Á˾ÍÖ±½ÓÄùýÀ´ÓÃ,·¢ÏÖÁËÎÊÌâÔÙÕÒ½â¾ö·½·¨.ÒÔÏÂÊÇÎÒÔÚÕÒ½â¾öÎÊÌâµÄ¹ý³ÌÖеÄÒ»µãССµÄ×ܽá.
Ò».̸AjaxµÄGetºÍPostµÄÇø±ð
   Get·½Ê½:
   ÓÃget·½Ê½¿É´«Ëͼòµ¥Êý¾Ý£¬µ«´óСһ°ãÏÞÖÆÔÚ1KBÏ£¬Êý¾Ý×·¼Óµ½urlÖз¢Ë ......

ASP.NET»ñÈ¡·þÎñÆ÷ÐÅÏ¢

"·þÎñÆ÷Ãû³Æ£º"+Server.MachineName;//·þÎñÆ÷Ãû³Æ 
                  "·þÎñÆ÷IPµØÖ·£º" + Request.ServerVariables["LOCAL_ADDR"];//·þÎñÆ÷IPµØÖ· 
          &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ