温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net简单防刷新图片计数器源码
当前文件:
ImgCounts/Web.config,打开代码结构图
ImgCounts/Web.config,打开代码结构图1<?xml version="1.0"?> 2
<!-- 3
注意: 除了手动编辑此文件以外,您还可以使用 4
Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的 5
“网站”->“Asp.Net 配置”选项。 6
设置和注释的完整列表在 7
machine.config.comments 中,该文件通常位于 8
\Windows\Microsoft.Net\Framework\v2.x\Config 中 9
--> 10
<configuration> 11
<appSettings/> 12
<connectionStrings> 13
<add name="lianxiConnectionString" connectionString="Data Source=.;Initial Catalog=webcount;Persist Security Info=False;User ID=sa;pwd=sasasa;" providerName="System.Data.SqlClient"/> 14
</connectionStrings> 15
<system.web> 16
<!-- 17
设置 compilation debug="true" 将调试符号插入 18
已编译的页面中。但由于这会 19
影响性能,因此只在开发过程中将此值 20
设置为 true。 21
--> 22
<compilation debug="true"/> 23
<!-- 24
通过 <authentication> 节可以配置 ASP.NET 使用的 25
安全身份验证模式, 26
以标识传入的用户。 27
--> 28
<authentication mode="Windows"/> 29
<!-- 30
如果在执行请求的过程中出现未处理的错误, 31
则通过 <customErrors> 节可以配置相应的处理步骤。具体说来, 32
开发人员通过该节可以配置 33
要显示的 html 错误页 34
以代替错误堆栈跟踪。 35
36
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> 37
<error statusCode="403" redirect="NoAccess.htm" /> 38
<error statusCode="404" redirect="FileNotFound.htm" /> 39
</customErrors> 40
--> 41
</system.web> 42
</configuration> 43


