In this article I will explain how to solve Password length minimum: 7. Non-alphanumeric characters required: 1 and how to remove password restrictions, unique email requirement and question and answer options during user registration in Membership using asp.net.
Description:
In my previous article I explained clearly how to use Custom database for Membership and how to create user with custom database
Create one new web application and name it as Registration.aspx now drag and drop the one new control CreateUserWizard from Login Controls list that aspx page like this
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server">
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
</asp:CreateUserWizardStep>
<asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
</asp:CompleteWizardStep>
</WizardSteps>
</asp:CreateUserWizard>
</div>
</form>
</body>
</html>
|
<connectionStrings>
<add name="Connection" connectionString="Data Source=SureshDasari;Integrated Security=true;Initial Catalog=AspMembership" providerName="System.Data.SqlClient"/>
</connectionStrings>
|
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="Connection" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" applicationName="SampleApplication"/>
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="Connection" applicationName="SampleApplication"/>
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="Connection" applicationName="SampleApplication"/>
</providers>
</roleManager>
|
![]() |
|
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
Subscribe by RSS
Subscribe by Email
|
|||
|
|
|

Subscribe by RSS
Subscribe by Email
3 comments :
Hi.
I understand everything else than the system web section. I now that the system web is in the reference folder, but where should i put in the code.
regards.
Ivan.
pls explain coding concepts
code for forgot password in .net
how to send gridview in email
how to send grid view in email body in asp
genrate create thumbnail from your mail
how to insert image in data base
introduction to object oriented programing
simpal login form examle to edit grid view row valuw in asp .net ajax cascading drop down list simpal withdata base using asp .net asp .net insert edit update delete data in grid view ajax model pop up extender exampal to simpal log in form exampal how to send grid view code for forgot password edit update bdelete data