Web.config
 
§ASP.net默认设定的配置文件。最大的便利之处就是可以通过调用System.web名字空间访问Web.config中的设置。
§种类
服务器配置文件
Web应用程序配置文件
§涉及应用程序配置信息、IIS配置信息、自定义配置信息等。

节点含义

Web.config 节点含义<?xml version="1.0" encoding="utf-8" ?>
Web.config 节点含义
<configuration>
Web.config 节点含义  
<system.web>
Web.config 节点含义    
<compilation defaultLanguage="vb" debug="true" />
Web.config 节点含义    
<customErrors mode="RemoteOnly" />
Web.config 节点含义    
<authentication mode="Windows" /> 
Web.config 节点含义    
<authorization>
Web.config 节点含义        
<allow users="*" />
Web.config 节点含义    
</authorization>
Web.config 节点含义    
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
Web.config 节点含义    
<sessionState 
Web.config 节点含义            
mode="InProc"
Web.config 节点含义            stateConnectionString
="tcpip=127.0.0.1:42424"
Web.config 节点含义            sqlConnectionString
="data source=127.0.0.1;Trusted_Connection=yes"
Web.config 节点含义            cookieless
="false" 
Web.config 节点含义            timeout
="20" 
Web.config 节点含义    
/>
Web.config 节点含义    
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
Web.config 节点含义  
</system.web>
Web.config 节点含义
</configuration>
Web.config 节点含义

相关文章: