温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Web图片管理系统代码
当前文件:
PictureManager/web.config,打开代码结构图
PictureManager/web.config,打开代码结构图1<?xml version="1.0"?> 2
<!-- 3
娉ㄦ剰: 闄や簡鎵嬪姩缂栬緫姝ゆ枃浠朵互澶栵紝鎮ㄨ繕鍙互浣跨敤 4
Web 绠$悊宸ュ叿鏉ラ厤缃簲鐢ㄧ▼搴忕殑璁剧疆銆傚彲浠ヤ娇鐢?Visual Studio 涓殑 5
鈥滅綉绔欌?>鈥淎sp.Net 閰嶇疆鈥濋夐」銆? 6
璁剧疆鍜屾敞閲婄殑瀹屾暣鍒楄〃鍦? 7
machine.config.comments 涓紝璇ユ枃浠堕氬父浣嶄簬 8
\Windows\Microsoft.Net\Framework\v2.x\Config 涓? 9
--> 10
<configuration> 11
<appSettings> 12
<add key="connStr" value="Data Source=(local);Initial Catalog=picture;Persist Security Info=True;User ID=sa;Password=sa"/> 13
</appSettings> 14
<system.web> 15
<!-- 16
璁剧疆 compilation debug="true" 鍙皢璋冭瘯绗﹀彿鎻掑叆 17
宸茬紪璇戠殑椤甸潰涓備絾鐢变簬杩欎細 18
褰卞搷鎬ц兘锛屽洜姝ゅ彧搴斿湪寮鍙戣繃绋嬩腑璁剧疆 19
姝ゅ笺? 20
21
Visual Basic 閫夐」: 22
璁剧疆 strict="true" 灏嗙姝㈡墍鏈変細瀵艰嚧 23
鏁版嵁涓㈠け鐨勭被鍨嬭浆鎹€? 24
璁剧疆 explicit="true" 灏嗗己鍒跺0鏄庢墍鏈夊彉閲忋? 25
--> 26
<compilation debug="true" strict="false" explicit="true"/> 27
<pages> 28
<namespaces> 29
<clear/> 30
<add namespace="System"/> 31
<add namespace="System.Collections"/> 32
<add namespace="System.Collections.Specialized"/> 33
<add namespace="System.Configuration"/> 34
<add namespace="System.Text"/> 35
<add namespace="System.Text.RegularExpressions"/> 36
<add namespace="System.Web"/> 37
<add namespace="System.Web.Caching"/> 38
<add namespace="System.Web.SessionState"/> 39
<add namespace="System.Web.Security"/> 40
<add namespace="System.Web.Profile"/> 41
<add namespace="System.Web.UI"/> 42
<add namespace="System.Web.UI.WebControls"/> 43
<add namespace="System.Web.UI.WebControls.WebParts"/> 44
<add namespace="System.Web.UI.HtmlControls"/> 45
</namespaces> 46
</pages> 47
<!-- 48
閫氳繃 <authentication> 鑺傚彲浠ラ厤缃?ASP.NET 浣跨敤鐨? 49
瀹夊叏韬唤楠岃瘉妯″紡锛? 50
浠ユ爣璇嗕紶鍏ョ殑鐢ㄦ埛銆? 51
--> 52
<authentication mode="Windows"/> 53
<!-- 54
濡傛灉鍦ㄦ墽琛岃姹傜殑杩囩▼涓嚭鐜版湭澶勭悊鐨勯敊璇紝 55
鍒欓氳繃 <customErrors> 鑺傚彲浠ラ厤缃浉搴旂殑澶勭悊姝ラ銆傚叿浣撹鏉ワ紝 56
寮鍙戜汉鍛橀氳繃璇ヨ妭鍙互閰嶇疆 57
瑕佹樉绀虹殑 html 閿欒椤? 58
浠ヤ唬鏇块敊璇爢鏍堣窡韪? 59
60
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> 61
<error statusCode="403" redirect="NoAccess.htm" /> 62
<error statusCode="404" redirect="FileNotFound.htm" /> 63
</customErrors> 64
--> 65
</system.web> 66
</configuration> 67


