All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
ASP.NET,2.0程序安全的基础知识_.net资料_编程技术
delphi常用的键盘事件处理方法-实例
C#,3.0新特性系列:隐含类型var_[Asp.Net教程]
剖析SQL Server 2005查询通知之基础篇_[SQL Server教程]
一段HTML代码组成的页面取其中前300个字_[Asp.Net教程]
PHP入门需要掌握的几种功能代码_[PHP教程]
.NET访问配置文件app.config的功能详解_.net资料_编程技术
Asp.net,5种页面转向方法_[Asp.Net教程]
ASP.NET,MVC+LINQ开发一个图书销售站点(3)-建立数据库_[Asp.Net教程]
PHP和MySQL基础教程(四)_[PHP教程]
Reading number is top 10 pictures
The terra-cotta warriors1
A beautiful girl to bud3
Summer is most suitable for young people to travel in China4
六种更聪明的工作方法
30 beautiful school beauty5
战场废物2
Sora aoi mirror memorial classics4
A letter to parents choose world of warcraft seven big reason
The goddess of the single reason1
梦幻的风景
Download software ranking
Unix video tutorial9
WebService在.NET中的实战应用教学视频 → 第3集
天龙八部十二宫服务端
Sora aoi's film--cangkong_Blue.Sky
Boxer Classic video1
软件工程思想
Tram sex maniac 2 (H) rar bag8
Boxer's Top ten classic battle4
Tram sex maniac 2 (H) rar bag6
Love the forty days
delv published in(发表于) 2014/1/10 6:30:11 Edit(编辑)
web.config配置文件示例_[Asp.Net教程]

web.config配置文件示例_[Asp.Net教程]

web.config配置文件示例_[Asp.Net教程]

为了方便配置web.config文件,我写了一个常用的web.config文件的示例,可以以此为模版根据需要修改。
创建web.config文件的三种快捷方法:
1、用VS2005中的asp.net网站配置工具配置
2、参考C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727(.net framework版本)\CONFIG\目录下的machine.config 文件进行编写
3、以下边这个文件作模版修改



点击此处展开代码



http://schemas.microsoft.com/.NetConfiguration/v2.0">






connectionString="Data Source=.;Initial Catalog=profile1;Integrated Security=True"
providerName="System.Data.SqlClient" />





type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="strConnUserDB"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
description="存储membership数据"
/>





connectionStringName="strConnUserDB"
applicationName="/"
type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="存储Profile数据"
/>










connectionStringName="strConnUserDB"
applicationName="/"
type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="存储Role数据"
/>




















来源:网络







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.