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

ASP.net´íÎó´¦Àí(´íÎóÌøתҳ webconfig)

ASP.net´íÎó´¦Àí(´íÎóÌøתҳ webconfig)
 
ʹÓö¨ÖÆ´íÎóÒ³Ãæ
  
   ËäÈ»ÎÒÃÇ·¢Ë͸øÓû§µÄ¹«ÓôíÎóÐÅÏ¢ÊÇ°²È«µÄ£¬¾ÍÊÇ˵Ëü²»»áÍþвµ½Ó¦ÓóÌÐòµÄÃØÃÜ£¬µ«ÊÇÕâÑùµÄÐÅÏ¢²¢²»ºÃ¿´¡£Ò²ÐíÄãÏ£ÍûÓû§ÓÀÔ¶Ò²¿´²»µ½ÕâÑùµÄÐÅÏ¢¡£Ïà·´£¬µ±´¦ÀíÇëÇóµÄ¹ý³ÌÖУ¬Èç¹û·¢ÉúÁËÒ»¸öΪ´¦ÀíµÄ´íÎó£¬ÄãÏ£ÍûÄܹ»ÏÔʾ×Ô¼ºµÄ“¶¨ÖÆ´íÎóÒ³Ã攣¬ÏÔʾ³ö×Ô¼ºµÄÆ·ÅÆÒÔ¼°Ìض¨µÄ´íÎóÐÅÏ¢¡£
ÏòASP.NET Ó¦ÓóÌÐòÖÐÔö¼Ó¶¨ÖÆ´íÎóÐÅÏ¢·Ç³£ÈÝÒס£Ê×ÏÈ£¬±àд×Ô¼ºµÄ webÒ³Ã棬Ëü¿ÉÒÔÊÇÈκÎÀàÐ͵ÄÎļþ£º.htm£¬.aspx£¬.asp£¬µÈµÈ¡£È»ºóÔÚÓ¦ÓóÌÐòµÄconfig.webÎļþÖÐÐÞ¸ÄÅäÖÃÐÅÏ¢£¬ÈÃËüÖ¸ÏòÕâ¸öÎļþ¡£
¾ÙÀý˵Ã÷£¬ÒÔÏÂÕâ¸öÅäÖÃÐÅϢ˵Ã÷ÔÚ·¢ÉúÁËÈκÎδÄÜÔ¤¶¨´¦Àí´íÎóµÄÇé¿öÏ£¬ä¯ÀÀÆ÷¶¼Ó¦¸Ã±»Öض¨Ïòµ½“ErrorPage.aspx”Ò³Ã棺
<configuration>
<customerrors mode="remoteonly" defaultredirect="ErrorPage.aspx" />
</configuration>
<customerrors>±ê¼ÇÖеēdefaultredirect”ÊôÐÔ¶¨ÒåÁËÔÚ·¢Éú´íÎóµÄÇé¿öÏ£¬Óû§½«±»Öض¨Ïòµ½µÄ“ĬÈϔҳÃæ¡£»òÕߣ¬Ò²¿ÉÒÔ¸ù¾ÝÏìÓ¦µÄhttp´úÂë״̬£¬Öض¨Ïòµ½ÆäËüµÄÒ³ÃæÀ´¸²¸ÇÕâ¸öĬÈÏÖµ¡£ÀýÈ磺Öض¨Ïòµ½Ò»¸öÌØÊâµÄ“δÕÒµ½Îļþ”´íÎóÒ³Ãæ¡¢“·Ç·¨·ÃÎÊ”´íÎóÒ³Ãæ¡¢“·þÎñÆ÷³åÍ»”´íÎóÒ³ÃæµÈµÈ¡£
¾ÙÀý˵Ã÷£¬ÒÔϵÄÅäÖÃÐÅÏ¢¸²¸Ç3¸öÌض¨µÄhttp ״̬´úÂ룬ËùÓÐÆäËü´íÎ󶼷µ»Øµ½Ò»¸öĬÈÏÒ³Ã棺
<customerrors defaultredirect="http://anotherhost/error.aspx" mode="remoteonly">
<error statuscode="500" redirect="http:/anotherhost/pages/callsupport.html" />
<error statuscode="404" redirect="http:/anotherhost/pages/adminmessage.html" />
<error statuscode="403" redirect="http:/anotherhost/pages/noaccess.html" />
</customerrors>
ÔÚ¶¨ÖÆ´íÎóÒ³ÃæÉÏÓÐÒ»¼þÊÂÎÒÃÇÒѾ­Óöµ½¹ý£¬ÄǾÍÊÇËäÈ»ËüÃǶÔÓÚÒѾ­Íê³ÉµÄÇé¿ö·Ç³£ÓÐÓã¬È»¶øÔÚ¿ª·¢¹ý³ÌÖÐÈ´·Ç³£ÄÑÒÔ¶Ô¸¶¡£ÒòΪÄãÔ¤Ïëµ½ÔÚ¿ª·¢¹ý³ÌÖлáÓÐbug£¬²¢ÇÒµ±Äã·¢ÏÖµÄʱºò£¬ÕæµÄÏ£Íû¿´µ½Êµ¼ÊµÄ´íÎóÐÅÏ¢¸ú×Ù¡£ÎªÁ˽â¾öÕâ¸öÎÊÌ⣬<customerrors>±ê¼ÇÖ§³ÖÒ»¸öÓÐ3¸öÖµµÄ“mode”ÊôÐÔ£º
“on”£ºÒâ˼ÊÇ×ÜÊÇ·¢³ö¶¨ÖÆ´íÎóÒ³Ã棻
“off”£ºÒâ˼ÊÇ´Ó²»·¢³ö¶¨ÖÆ´íÎóÒ³Ã棨Äã×ÜÊÇ¿´µ½Ô­Ê¼µÄ´íÎóÐÅÏ¢


Ïà¹ØÎĵµ£º

asp.netÎļþºÍÎļþ¼ÐѹËõ

·¨Ò»£ºµ÷ÓÃwinrar
using Microsoft.Win32;
using System.Diagnostics;
protected void Button1_Click(object sender, EventArgs e)
    {
        RAR(@"E:\95413594531\GIS", "tmptest", @"E:\95413594531\");
    }
    /// ......

ASP.NET MVC ¶àÓïÑÔ½â¾ö·½°¸

ASP.NET MVC ¶àÓïÑÔ½â¾ö·½°¸()
  ¾ÍÒ»¸öÍøÕ¾µÄ¶àÓïÑÔÌØÐÔÀ´Ëµ£¬ÎÒÈÏΪ·ÖΪÁ½¸ö·½Ã棺
    1¡¢HTML½çÃæÉÏÏÔʾµÄÎÄ×ÖÐèÒª¶àÓïÑÔ
    2¡¢HTML½çÃæÉÏJSÊä³öµÄÎÄ×ÖÐèÒª¶àÓïÑÔ
    Ô­À´ÔÚHTML²¿·ÖÖ±½ÓдµÄÎÄ×Ö¶¼²»ÄÜÖ±½ÓдҪÊä³öµÄÎÄ×Ö£¬¶øÊÇÒª²ÉÓñê¼ÇµÄ·½·¨À´Ìæ»»¡£JSÒ² ......

Ìá¸ßASP.NETÐÔÄܵķ½·¨

 
 Ò»¡¢ÐÔÄܲÎÊý£º
¡¡¡¡1¡¢ ÍÌÍÂÁ¿
¡¡¡¡2¡¢ ÏìӦʱ¼ä
¡¡¡¡3¡¢ Ö´ÐÐʱ¼ä
¡¡¡¡4¡¢ ¿ÉÉìËõÐÔ
¡¡¡¡¶þ¡¢ÐÔÄÜÒòËØ£º
¡¡¡¡1¡¢ASPXÖ´Ðл·¾³
¡¡¡¡2¡¢±àд´úÂëÂß¼­
¡¡¡¡Èý¡¢Ìá¸ßÐÔÄܵķ½·¨£º
¡¡¡¡1¡¢ ±ÜÃâ²»±ØÒªµÄ²Ù×÷.ÀýÈç:ÔÚPage_LoadÖÐʹÓÃIsPostBack;
¡¡¡¡2¡¢ ¾¡Á¿¼õÉÙʹÓ÷þÎñÆ÷¶Ë¿Ø¼þ
¡¡¡¡3¡¢ ¹Ø±Õ²»±ØÒª ......

ajax+asp.net/asp/php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ

ajax+asp.net+mssqlʵÏÖµÄajaxÎÞË¢ÐÂÁÄÌìÊÒ£¬Ö§³Öhtml web±à¼­Æ÷¡£
ΪÁ˼ӿìËٶȣ¬Ê¹ÓÃÁË´æ´¢¹ý³Ì¡£
asp¼°php°æ±¾Çë¿´ÏÂÃæµÄÎÄÕÂ
ajax+asp+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
ajax+php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
´ËÀý×ÓÒ²¿ÉÒÔ×÷Ϊmssql´æ´¢¹ý³ÌʹÓõÄʾÀý£¬Èçphpµ÷ÓÃmssqlµÄ´æ´¢¹ý³Ì£¬php»ñÈ¡mssqlÊý¾Ý¿âµÄÊä³ö²ÎÊý¡£
ҪʹÓò»Í¬µÄ¶¯Ì¬Ò³Ãæ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ