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

ASP.NETÅäÖÃÎļþWeb.config

(Ò»).Web.ConfigÊÇÒÔXMLÎļþ¹æ·¶´æ´¢,ÅäÖÃÎļþ·ÖΪÒÔϸñʽ
1.ÅäÖýڴ¦Àí³ÌÐòÉùÃ÷
Ìص㣺 λÓÚÅäÖÃÎļþµÄ¶¥²¿£¬°üº¬ÔÚ<configSections>±êÖ¾ÖС£
2.Ìض¨Ó¦ÓóÌÐòÅäÖÃ
Ìصã: λÓÚ<appSetting>ÖС£ ¿ÉÒÔ¶¨ÒåÓ¦ÓóÌÐòµÄÈ«¾Ö³£Á¿ÉèÖõÈÐÅÏ¢.
3.ÅäÖýÚÉèÖÃ
Ìصã: λÓÚ<system.Web>½ÚÖУ¬¿ØÖÆAsp.netÔËÐÐʱµÄÐÐΪ.
4.ÅäÖýÚ×é
Ìصã: ÓÃ<sectionGroup>±ê¼Ç£¬¿ÉÒÔ×Ô¶¨Òå·Ö×飬¿ÉÒԷŵ½<configSections>ÄÚ²¿»òÆäËü<sectionGroup>±ê¼ÇµÄÄÚ²¿.
(¶þ).ÅäÖýڵÄÿһ½Ú
1.<configuration>½Ú
¸ùÔªËØ£¬ÆäËü½Ú¶¼ÊÇÔÚËüµÄÄÚ²¿.
2.<appSetting>½Ú
´Ë½ÚÓÃÓÚ¶¨ÒåÓ¦ÓóÌÐòÉèÖÃÏî¡£¶ÔһЩ²»È·¶¨ÉèÖ㬻¹¿ÉÒÔÈÃÓû§¸ù¾Ý×Ô¼ºÊµ¼ÊÇé¿ö×Ô¼ºÉèÖÃ
Ó÷¨:
I.
<appSettings>
<add key="Conntction" value="server=192.168.85.66;userid=sa;password=;database=Info;"/>
<appSettings>
¶¨ÒåÁËÒ»¸öÁ¬½Ó×Ö·û´®³£Á¿£¬²¢ÇÒÔÚʵ¼ÊÓ¦ÓÃʱ¿ÉÒÔÐÞ¸ÄÁ¬½Ó×Ö·û´®£¬²»ÓÃÐ޸ijÌʽ´úÂë.
II.<appSettings>
<add key="ErrPage" value="Error.aspx"/>
<appSettings>
¶¨ÒåÁËÒ»¸ö´íÎóÖض¨ÏòÒ³Ãæ.
3.<compilation>½Ú
¸ñʽ:
<compilation
defaultLanguage="c#"
debug="true"
/>
I.default language: ¶¨Òåºǫ́´úÂëÓïÑÔ,¿ÉÒÔÑ¡ÔñC#ºÍVB.netÁ½ÖÖÓïÑÔ.
IIdebug : Ϊtrueʱ£¬Æô¶¯aspxµ÷ÊÔ£» Ϊfalse²»Æô¶¯aspxµ÷ÊÔ£¬Òò¶ø¿ÉÒÔÌá¸ßÓ¦ÓóÌÐòÔËÐÐ
ʱµÄÐÔÄÜ¡£ Ò»°ã³ÌÐòÔ±ÔÚ¿ª·¢Ê±ÉèÖÃΪtrue,½»¸ø¿Í»§Ê±ÉèÖÃΪfalse.
4.<customErrors>½Ú
¸ñʽ:
<customErrors
mode="RemoteOnly"
defaultRedirect="error.aspx"
<error statusCode="440" redirect="err440page.aspx"/>
<error statusCode="500" redirect="err500Page.aspx"/>
/>
I.mode : ¾ßÓÐOn,Off,RemoteOnly 3ÖÖ״̬¡£On±íʾʼÖÕÏÔʾ×Ô¶¨ÒåµÄÐÅÏ¢; Off±íʾʼÖÕÏÔʾÏêϸµÄasp.net´íÎóÐÅÏ¢; RemoteOnly±íʾֻ¶Ô²»ÔÚ±¾µØWeb·þÎñÆ÷ÉÏÔËÐеÄÓû§ÏÔʾ×Ô¶¨ÒåÐÅÏ¢.
II.defaultRedirect: ÓÃÓÚ³öÏÖ´íÎóʱÖض¨ÏòµÄURLµØÖ·. ÊÇ¿ÉÑ¡µÄ
III.statusCode: Ö¸Ã÷´íÎó״̬Â룬±íÃ÷Ò»ÖÖÌض¨µÄ³ö´í״̬.
IV. redirect:´íÎóÖض¨ÏòµÄURL.
5.<globalization>½Ú
¸ñʽ:
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"
/>
I.requestEncoding: ËüÓÃÀ´¼ì


Ïà¹ØÎĵµ£º

asp.netѧϰÍø

±¾ÎÄΪÖйúASP.NET¿ª·¢ÍøÔ­´´ÎÄÕ£¬×ªÔرØÐë×¢Ã÷³ö´¦¡£ Ãû³Æ£º ASP.NET
µØÖ·£ºhttp://www.asp.net
½éÉÜ£ºÎ¢Èí.NET webformµÄÀϳ²£¬×ÊÁϺÍʵÀý´úÂ붼·Ç³£Äѵá£
Ãû³Æ£º CSDNÎĵµÖÐÐÄ    loveswallow998  58213998
µØÖ·£ºhttp://dev.csdn.net/
½éÉÜ£ºÖÐÎĵģ¬×ÊÁÏ»¹Ëã·á¸»£¬¿ÉÒÔ×÷Ϊ¹úÄÚÊ×Ñ¡¡£ ......

ASP.NET»·¾³µÄÅäÖÃ

½ñÌìÓÃÁË2¸öСʱµÄʱ¼äÀ´ÅäASP.NETµÄ»·¾³£¬ÓÐЩÈË¿ÉÄÜ»áÎÊ£¬ÎªÊ²Ã´ÐèÒªÕâô¾Ã£¬´ð°¸ºÜ¼òµ¥£¬ÒòΪÎÒµÄϵͳÊÇXPÉî¶ÈµÄ~ ËùÒÔ°²×°IISºÜ·Ñ¾¢£¬½ÓÏÂÀ´ÎÒÃèÊöÏÂÎÒÔõô°²×°µÄ¡£
Ç°Ì᣺
1£©ÒѾ­°²×°ÁËVS2008£¬Õâ¸ö³ÌÐòÀïÃæÒѾ­´øÁË.NETµÄFramwork
²½Ö裨һ¶¨Òª¿´ÍêÎÒдµÄÔÙȥŪ£¡£¡£¡£©£º
1£©ÏÖÔÚµÄÈÎÎñÊÇÈ¥ÍøÉÏÏÂÔØÒ»¸öIIS5.Xµ ......

js C# ASP.Net ÕýÔòÈ¥µô³¬Á´½Ó(Ö»ÊÇ ºÍ )

//Ìæ»»ËùÓÐ
Regex reg = new Regex(@"(?is)</?a\b[^>]*>(?:(?!</?a).)*</a>");
string result = reg.Replace(yourStr, "");
//±£Áôwww.abc.comÁ´½Ó
Regex reg = new Regex(@"(?is)</?a\b.*?href=(['""]?)(?!(?:http://)?www\.abc\.com)[^'""\s>]+\1[^>]*>(?<text>(?:(?!</?a).) ......

asp.netģ̬´°¿Úÿ´Î½øÈ벻ˢÐÂÎÊÌâ

ģ̬´°¿Úÿ´ÎÒ³ÃæÖØдò¿ª²»Ë¢Ð¡£
»º´æµÄÔ­Òò£¬¸Ä³ÉÕâÑù£º
½â¾ö°ì·¨¡£¡£¡£
url   =   frmWin   +   "? "   +   Math.random();
window.showModalDialog(url,me, 'dialogWidth= '+width   + 'px;dialogHeight= '+height+ 'px;help:no;status:no;resizable:no;scro   ll:no; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ