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>
服务器配置文件 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>
相关文章推荐
- ASP.NET高级应用(2)
- ASP.NET高级应用(3)
- 64位下IIS配置调用Microsoft.Jet.OLEDB.4.0的asp.net网络应用
- ASP.NET高级应用之 (站点导航SiteMapPath控件)
- ASP.NET 之 CheckBoxList在实际项目中的应用——高级查询、数据库读出默认选中
- asp.net高级应用之站点导航SiteMapPath控件
- 理解并使用ASP.NET的高级配置
- [原创] WCF技术剖析之六:为什么在基于ASP.NET应用寄宿(Hosting)下配置的BaseAddress无效
- WCF技术剖析之六:为什么在基于ASP.NET应用寄宿(Hosting)下配置的BaseAddress无效
- asp.net高级应用之GridView控件
- ASP.NET 2.0项目手动配置应用AJAX
- 读书笔记 ASP.NET 2.0高级编程 第31章 配置
- WCF技术剖析之六:为什么在基于ASP.NET应用寄宿(Hosting)下配置的BaseAddress无效
- ASP.NET高级里面的repeater控件的应用实现样式设置,并添加删除按钮
- 为 SQL Server 创建并配置 ASP.NET 应用服务数据库概览
- 基于元数据配置的asp.net数据库应用快速开发框架设计及实现
- asp.net mvc 应用Bundle(捆绑和微小)压缩技术 启用 BundleConfig 配置web.config
- 理解并使用ASP.NET的高级配置
- Linux下应用Mono配置Asp.NET服务
- log4net在Asp.net Mvc中的应用配置与介绍