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

ÔÚ²»Í¬°æ±¾µÄ IIS ÉÏʹÓà ASP.NET MVC

ÔÚ²»Í¬°æ±¾µÄ IIS ÉÏʹÓà ASP.NET MVC
ASP.NET MVC Framework ÒÀÀµÓÚ URL ·ÓÉ¡£ÎªÁËÀûÓà URL ·ÓÉ£¬¿ÉÄܲ»µÃ²»ÔÚ Web ·þÎñÆ÷ÉÏÖ´ÐжîÍâµÄÅäÖò½Öè¡£ÕâЩ²½ÖèÈ¡¾öÓÚ Internet Information Services (IIS) µÄ°æ±¾ºÍÓ¦ÓóÌÐòµÄÇëÇó´¦Àíģʽ¡£
IIS µÄ×îа汾ÊÇ°æ±¾ 7.0¡£IIS µÄ´Ë°æ±¾°üÀ¨ÔÚ Windows Server 2008 ÖС£»¹¿ÉÒÔÔÚ³ý Home Basic ÒÔÍâµÄÈκΠVista ²Ù×÷ϵͳÉÏ°²×° IIS 7.0£¨Çë²Î¼û http://technet.microsoft.com/en-us/library/cc732624.aspx£©¡£
IIS 7.0 Ö§³ÖÁ½ÖÖģʽµÄ´¦ÀíÇëÇ󡣿ÉÒÔʹÓü¯³Éģʽ»ò¾­µäģʽ¡£ÒÔ¼¯³ÉģʽʹÓà IIS 7.0 ʱ²»ÐèÒªÖ´ÐÐÈκÎÌØÊâÅäÖò½Öè¡£µ«ÊÇÒÔ¾­µäģʽʹÓà IIS 7.0 ʱÐèÒªÖ´ÐжîÍâµÄÅäÖá£
Microsoft Windows Server 2003 °üº¬ IIS 6.0¡£ÔÚʹÓà Windows Server 2003 ²Ù×÷ϵͳʱ²»Äܽ« IIS 6.0 Éý¼¶Îª IIS 7.0¡£Ê¹Óà IIS 6.0 ʱ±ØÐëÖ´ÐÐÆäËûÅäÖò½Öè¡£
Microsoft Windows XP Professional °üº¬ IIS 5.1¡£Ê¹Óà IIS 5.1 ʱ±ØÐëÖ´ÐÐÆäËûÅäÖò½Öè¡£
×îºó£¬Microsoft Windows 2000 ºÍ Microsoft Windows 2000 Professional °üº¬ IIS 5.0¡£Ê¹Óà IIS 5.0 ʱ±ØÐëÖ´ÐÐÆäËûÅäÖò½Öè¡£
ÒÔÏÂÊDz»Í¬ IIS °æ±¾µÄ×ܽ᣺
IIS 7.0£¨¼¯³Éģʽ£©– ʹÓà URL ·Óɲ»ÐèÒªÌØÊâÅäÖá£
IIS 7.0£¨¾­µäģʽ£©– ÐèÒªÖ´ÐÐÌØÊâÅäÖòÅÄÜʹÓà URL ·ÓÉ¡£
IIS 6.0 »ò¸üµÍ°æ±¾– ÐèÒªÖ´ÐÐÌØÊâÅäÖòÅÄÜʹÓà URL ·ÓÉ¡£
¼¯³ÉģʽºÍ¾­µäģʽ
IIS 7.0 ¿ÉÒÔʹÓÃÁ½ÖÖÇëÇó´¦Àíģʽ´¦ÀíÇëÇ󣺼¯³ÉģʽºÍ¾­µäģʽ¡£¼¯³Éģʽ¿ÉÌṩ¸üºÃµÄÐÔÄܺ͸ü¶àµÄ¹¦ÄÜ¡£¾­µäģʽÓÃÓÚÏòÔçÆÚµÄ IIS °æ±¾ÌṩÏòºó¼æÈÝÐÔ¡£
ÇëÇó´¦ÀíģʽÓÉÓ¦ÓóÌÐò³Ø¾ö¶¨¡£Í¨¹ýÈ·¶¨ÓëÓ¦ÓóÌÐò¹ØÁªµÄ³Ø£¬¿ÉÒÔÈ·¶¨Ìض¨µÄ Web Ó¦ÓóÌÐòʹÓúÎÖÖ´¦Àíģʽ¡£Ö´ÐÐÒÔϲ½Ö裺
Æô¶¯ Internet Information Services Manager¡£
ÔÚ Connections ´°¿ÚÖÐÑ¡ÔñÒ»¸öÓ¦ÓóÌÐò¡£
ÔÚ Actions ´°¿ÚÖУ¬µ¥»÷ Basic SettingsÁ´½ÓÒÔ´ò¿ª Edit Application ¶Ô»°¿ò£¬Èçͼ 1 Ëùʾ¡£
×¢ÒâÑ¡ÔñµÄ Application Pool¡£
ĬÈÏÇé¿öÏ£¬IIS ÅäÖÃΪ֧³ÖÁ½ÖÖÓ¦ÓóÌÐò³Ø£ºDefaultAppPoolºÍ Classic .NET AppPool¡£Èç¹ûÑ¡ÔñDefaultAppPool£¬ÔòÓ¦ÓóÌÐòÔÚ¼¯³ÉÇëÇó´¦ÀíģʽÏÂÔËÐС£Èç¹ûÑ¡ÔñClassic .NET AppPool£¬ÔòÓ¦ÓóÌÐòÔÚ¾­µäÇëÇó´¦ÀíģʽÏÂÔËÐС£
ͼ 1£ºÌ½²âÇëÇó´¦Àíģʽ£¨µ¥»÷²é¿´´óͼ£©
Çë×¢Ò⣬¿ÉÒÔÔÚ Edit Application ¶Ô»°¿òÖÐÐÞ¸ÄÇëÇó´¦Àíģʽ¡£µ¥»÷ Select °´Å¥²¢¸ü¸ÄÓëÓ¦ÓóÌÐò¹ØÁªµ


Ïà¹ØÎĵµ£º

C# ASP.NETÀï@µÄÃîÓÃ

C# ASP.NETÀï@µÄÃîÓÃ
ASP.NET C# string ×Ö·û´®µÄÇ°Ãæ¿ÉÒÔ¼Ó @ ¿ÉÒÔ½«×ªÒå×Ö·û£¨\£©µ±×÷ÆÕͨ×Ö·û¶Ô´ý¡£
±ÈÈ磺string str = @"C:\Windows";
Èç¹ûÎÒÃDz»Óà @ µÄ»°£¬Ó¦¸ÃÊÇ£ºstring str = "C:\\Windows";
 
@ ×Ö·û´®ÖУ¬ÎÒÃÇÓÃÁ½¸öÁ¬ÐøÓ¢ÎÄË«ÒýºÅ±íʾһ¸öÓ¢ÎÄË«ÒýºÅ£¬ÈçÏÂ×Ö·û´®µÄʵ¼ÊÄÚÈÝΪ£º="=£¬×Ö·û´®³¤¶ÈΪ 3 ......

ASP.NETµÄ´íÎó´¦Àí»úÖÆ

¶ÔWebÓ¦ÓóÌÐòÀ´Ëµ£¬·¢Éú²»¿ÉÔ¤ÖªµÄ´íÎóºÍÒì³£ÔÚËùÄÑÃ⣬ÎÒÃDZØÐëΪWeb³ÌÐòÌṩ´íÎó´¦Àí»úÖÆ¡£µ±´íÎó·¢Éúʱ£¬ÎÒÃDZØÐë×öºÃÁ½¼þÊÂÇ飺һÊǽ«´íÎóÐÅÏ¢¼Ç¼ÈÕÖ¾£¬·¢Óʼþ֪ͨÍøվά»¤ÈËÔ±£¬·½±ã¼¼ÊõÈËÔ±¶Ô´íÎó½øÐиú×Ù´¦Àí£»
¶þÊÇÒÔÓѺõķ½Ê½Ìáʾ×îÖÕÓû§Ò³Ãæ·¢ÉúÁË´íÎ󣬶ø²»Äܽ«Î´´¦ÀíµÄ´íÎóÐÅÏ¢ÏÔʾ¸øÓû§¡£
 
&nbs ......

asp.net ·¢ËÍÓʼþ

web.config
    <system.net>
        <mailSettings>
            <smtp deliveryMethod="Network" from="mymail&lt;you@163.com&gt;">
       ......

Asp.net Ò³Ãæ´«ÖµÖ® @ PreviousPageType Ö¸Áî¡£

¸ø³öÈçÏÂÀý×Ó ÎÒÖ»ÖªµÀÕâÑù×ö¿ÉÒÔµ÷ÓÃÉÏÒ»¸öÒ³Ãæ µÄÖµ»òÕß·½·¨ µ«ÊÇÎÒ²»ÖªµÀÔ­ÀíºÍËüµÄÓÅÂÔ
Çë¸ßÊÖ ¼ÓÒÔÖ¸µã ´ó¼Ò¹²Í¬Ñ§Ï° лл£¡
1.Default.aspx Ò³Ãæ
protected void but1_Click(object sender, EventArgs e)
    {
        Server.Transfer("Default2.aspx"); ......

½Å±¾(JS)¹Ø±Õ´°Ì壨ASP.NET£©

¹Ø±Õ´°Ìå 
  1.
      this.btnClose.Attributes.Add("onclick",  "window.close();return false;");
  2.¹Ø±Õ±¾´°Ìå¼äÌøתµ½ÁíÒ»¸öÒ³Ãæ
      this.HyperLink1.NavigateUrl = "javascript:onclick=window.opener.location.assign
        ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ