您的位置:首页 > 编程语言 > ASP

asp.net高级应用---配置

2011-12-22 19:39 225 查看
配置方件:

服务器配置文件 machin.config

应用程序配置文件 web.config

配置设置的应用关系是继承关系 检测配置文件的变化是自动检测 配置文件的格式是xml

连接字符串的配置有两种:一,appsettings 二,connectionsrings

配置会话状态:sessionstate mode="off" cookieless="false" timeout="10" stateconnectionstring="tcpip=localhost:42424" sqlconnectionstring="数据连接字符串"></sessionstate>

编译配置:<compilation debug="true"></compliation>

定制错误配置:<customerrors mode="remoteonle" defaultredirect="genericerrorpage.htm">

<error statuscode="403" redirect="noaccess.htm"/>

<error statusc ode="404" redirect="filenotfound.htm">

</customerrors>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: