做了一个MEMBERSHIP的测试,先记下来,以备后用!
<connectionStrings>
<add name="conn" connectionString="server=.\sqlexpress;uid=sa;pwd=123456;database=test"/>
</connectionStrings>
<system.web>
<!-- 开启角色管理 -->
<roleManager enabled="true" />
<!-- membership配置 -->
<membership userIsOnlineTimeWindow="20">
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add connectionStringName="conn" enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/"
requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10" passwordStrengthRegularExpression=""
name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</membership>
<!-- 启用匿名用户-->
<anonymousIdentification
enabled="true"
cookieName=".AnonymousUser"
cookieTimeout="60"
cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
cookieProtection="Validation"
cookieless="UseCookies"
/>
<!-- 第一个Profile设置,可用中文,推荐英文 -->
<profile automaticSaveEnabled="true" enabled="true" defaultProvider="MembershipTest">
<providers>
<add name="MembershipTest" connectionStringName="conn" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
<properties>
<add name="性别" type="System.String" allowAnonymous="true" />
<add name="生日" type="System.DateTime" allowAnonymous="true" />
<add name="星座" type="System.String" allowAnonymous="true" />
<group name="地址">
<add name="国家" defaultValue="中国" type="System.String" allowAnonymous="true" />
<add name="城市" type="System.String" allowAnonymous="true" />
<add name="邮编" type="System.Int32" allowAnonymous="true" />
</group>
</properties>
</profile>
<!--
通过 <authentication> 节可以配置 ASP.NET 用来
识别进入用户的
安全身份验证模式。
-->
<authentication mode="Forms">
<forms name="myAuthentication" loginUrl="Login.aspx" timeout="60" />
</authentication>
<!--
如果在执行请求的过程中出现未处理的错误,
则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
开发人员通过该节可以配置
要显示的 html 错误页
以代替错误堆栈跟踪。
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
分享到:
相关推荐
一个XML做为数据库的留言本程序,利用了Asp.net2.0中的DataList、MemberShip等控件 该程序采用面相对象开发
怎么在ASP.NET 2.0中使用Membership asp.net 2.0-实现数据访问(1) ASP.NET 2.0 新特性 .NET 2.0里使用强类型数据创建多层应用 在MastPage中引用脚本资源 2.0正式版中callback的一些变化+使用示例(ASP.NET 2.0)...
CHAPTER 1 Introducing ASP.NET 3 CHAPTER 2 Visual Studio 23 CHAPTER 3 Web Forms 71 CHAPTER 4 Server Controls 115 CHAPTER 5 ASP.NET Applications 167 CHAPTER 6 State Management219 PART 2 Data ...
1.1.7 要点7:ASP.NET易于部署和配置 1.2 ASP.NET的演变 1.2.1 ASP.NET1.0和ASP.NET1.1 1.2.2 ASP.NET2.0 1.2.3 ASP.NET3.5 1.2.4 ASP.NET4 1.2.5 Silverlight 1.3 总结 第2章 Visual Studio 2.1...
2.ASP.NET.2.0.高级编程(第4版) [1/7] 原书名: Professional ASP.NET 2.0 原出版社: Wrox 作者:(美)Bill Evjen, Scott Hanselman, Farhan Muhammad [同作者作品] [作译者介绍] 译者: 李敏波[同译者作品] ...
1.1.7 要点7:ASP.NET易于部署和配置 8 1.2 ASP.NET的演变 9 1.2.1 ASP.NET1.0和ASP.NET1.1 9 1.2.2 ASP.NET2.0 9 1.2.3 ASP.NET3.5 10 1.2.4 ASP.NET4 12 1.2.5 Silverlight 14 1.3 总结 15 第2章...
YQBlog - 基于Asp.Net MVC3 EF4.0技术的个人博客系统。 网站结构: 权限:.net membership 文章分类:category.js(json格式存储) 文章内容:表 blog_article,blog_articledetail 以及 视图 blog_varticle ...
一个XML做为数据库的留言本程序,利用了Asp.net2.0中的DataList、MemberShip等控件 该程序采用面相对象开发 注意:后台管理采用Sql2005数据库
自己动手写Web服务器(Socket、多线程)、ashx模式Web开发、ViewState、Cookie、Session、Http协议、Web开发基本原则、XSS漏洞防范、Request对象、Response对象、Server对象、虚拟路径、HttpHandler深入、ASP.Net...
20.4 配置ASP.NET应用程序699 20.5 测试SQL Server高速缓存 禁用功能700 20.5.1 给页面添加多个表702 20.5.2 给SQL Server 高速缓存依赖性和 Request对象建立关联702 20.5.3 给SQL Server 高速缓存依赖性 和...
Introducing ASP.NET Visual Studio Web Forms Server Controls ASPNET Applications State Management ADONET Fundamentals Data Components and the DataSet Data Binding Rich Data Controls Caching ...
DbEntry.Net是作者(梁利锋)设计的一个轻量级的 .Net ORM (Object Relational Mapping) ... ·支持 ASP.NET 2.0 Membership 系统 ·DataSource 支持“新建”和“编辑”页面 ·Rails 风格 MVC 框架
[交友会员]Asp.net MVC会员管理系统_skyisite.rar [交友会员]Asp.net校友录(同学录)系统源码_xiaoyoulu1.1_51.rar [交友会员]VIP会员积分系统_vipweb2.rar [交友会员]XML同学录系统(毕业设计)_xmlclass.rar [交友...
基于Asp.Net MVC3 EF4.0技术的个人博客系统。 网站结构: 权限:.net membership 文章分类:category.js(json格式存储) 文章内容:表 blog_article,blog_articledetail 以及 视图 blog_varticle 配置信息:...
YQBlog - 基于Asp.Net MVC3 EF4.0技术的个人博客系统。 网站结构: 权限:.net membership 文章分类:category.js(json格式存储) 文章内容:表 blog_article,blog_articledetail 以及 视图 blog_varticle ...
√(vs200521) 25. Asp.Net中的事件(控件事件) √(vs200522) 26. 小结考试√(ceshi04) 类 27. 类的概述√(vs200523) 28. 类的自定义事件√(vs200524) 29. 类--共享成员√(vs200525) 30. ...
一个XML做为数据库的留言本程序,利用了Asp.net2.0中的DataList、MemberShip等控件 该程序采用面相对象开发
这是我学习asp.net2.0、XML、UltraChart后为了将所学串联起来所做的项目实践,背景针对的是名片夹的管理。有以下注意事项: 1、建立名为“MyCardHolder”的虚拟目录,设置起始页为login.aspx 2、程序采用的是...