当前位置: 移动技术网 > IT编程>开发语言>.net > asp.net Web.config 详细配置说明

asp.net Web.config 详细配置说明

2017年12月12日  | 移动技术网IT编程  | 我要评论

18876622897,苗疆,敖贤英

<?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>

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网