当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > asp.net Web.config 详细配置说明

ASP.NET
动态加载Js代码到Head标签中的脚本
asp.net Parameters.AddWithValue方法在SQL语句的 Where 字句中的用法
ASP.NET 运行时错误: 没有为扩展名“.asax”注册的生成提供程序修正版
Convert.ToInt32与Int32.Parse区别及Int32.TryParse
WebService出现"因 URL 意外地以 结束,请求格式无法识别"的解决方法
asp.net(C#) Xml操作(增删改查)练习
asp.net 分页sql语句(结合aspnetpager)
asp.net开发与web标准的冲突问题的一些常见解决方法
asp.net Repeater中使用if的代码
Asp.net FCKEditor 2.6.3 上传文件没有权限解决方法
C# 命名规则(挺不错的)
asp.net 动态生成控件并获取其值
使用DataGrid中扩展ItemRenderer和HeaderRenderer进行操作
asp.net Hashtable 遍历写法
asp.net GridView和DataList实现鼠标移到行行变色
C# 邮件地址是否合法的验证
.net发送邮件实现代码
ASP.Net 上传图片并生成高清晰缩略图
asp.net 事件与委托分析
C# 无限级分类的实现

ASP.NET 中的 asp.net Web.config 详细配置说明


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-13   浏览: 64 ::
收藏到网摘: n/a

asp.net开发的朋友,经常用得到web.config文件的配置,所以我们特整理了中文说明。 <?xml version="1.0" standalone="yes"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<!--配置全局变量-->
<appSettings>
<add key="examstr" value="server=.;database=myweb_exam_db;uid=exam_login;pwd=xxd_examadmin"/>
</appSettings>
<!--配置全局变量-->
<!--网站系统配置-->
<system.web>
<!--上传文件时提示访问被拒绝,生成图片文件等失败文件夹没有改写权限-->
<identity impersonate="true"/>
<!--在客户端显示错误信息-->
<customErrors mode="Off" />
<!--允许匿名访问-->
<authorization>
<allow users="*" />
</authorization>
<!--启用跟踪页面-->
<trace enabled="true" requestLimit="1000" pageOutput="true" traceMode="SortByTime" localOnly="true" />
<!--防止网页乱码-->
<globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312"/>
<!--有两个form时,用窗体提交时配置-->
<pages validateRequest="false" enableSessionState="true" enableViewState="true" enableEventValidation="false"/>
<!--设置上传文件大小-->
<httpRuntime executionTimeout="300" maxRequestLength="102400" useFullyQualifiedRedirectUrl="false"/>
</system.web>
<!--网站系统配置-->
</configuration>