温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net根据IP显示省市拼音源码
当前文件:
IpCity/Web.Config,打开代码结构图
IpCity/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
<!-- 13
Ip鐨凙ccess鏁版嵁杩炴帴瀛楃涓? 14
--> 15
<add key="IPConnString" value="provider=microsoft.jet.oledb.4.0;data source="/> 16
<add key="dbPath" value="~/DB_51aspx/IP_Address.mdb"/> 17
</appSettings> 18
<connectionStrings/> 19
<system.web> 20
<!-- 21
璁剧疆 compilation debug="true" 灏嗚皟璇曠鍙锋彃鍏? 22
宸茬紪璇戠殑椤甸潰涓備絾鐢变簬杩欎細 23
褰卞搷鎬ц兘锛屽洜姝ゅ彧鍦ㄥ紑鍙戣繃绋嬩腑灏嗘鍊? 24
璁剧疆涓?true銆? 25
--> 26
<compilation debug="true"/> 27
<!-- 28
閫氳繃 <authentication> 鑺傚彲浠ラ厤缃?ASP.NET 浣跨敤鐨? 29
瀹夊叏韬唤楠岃瘉妯″紡锛? 30
浠ユ爣璇嗕紶鍏ョ殑鐢ㄦ埛銆? 31
--> 32
<authentication mode="Windows"/> 33
<!-- 34
濡傛灉鍦ㄦ墽琛岃姹傜殑杩囩▼涓嚭鐜版湭澶勭悊鐨勯敊璇紝 35
鍒欓氳繃 <customErrors> 鑺傚彲浠ラ厤缃浉搴旂殑澶勭悊姝ラ銆傚叿浣撹鏉ワ紝 36
寮鍙戜汉鍛橀氳繃璇ヨ妭鍙互閰嶇疆 37
瑕佹樉绀虹殑 html 閿欒椤? 38
浠ヤ唬鏇块敊璇爢鏍堣窡韪? 39
40
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> 41
<error statusCode="403" redirect="NoAccess.htm" /> 42
<error statusCode="404" redirect="FileNotFound.htm" /> 43
</customErrors> 44
--> 45
</system.web> 46
</configuration> 47


