程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> .NET網頁編程 >> ASP.NET >> ASP.NET基礎 >> asp.net Web.config 詳細配置說明

asp.net Web.config 詳細配置說明

編輯:ASP.NET基礎
<?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>
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved