hi every body

i build login page in visual web developer using vb with standard create user control which have username,password,email,security question and its answer
the question is how to customize create user control so i need only from it email and password without security question and security answer and add new fields like age,sex,job
and remove password condition were the user have to add non alphabetic character to his password.

thanx

i assume its ASP.NET

you can set these properties in the web.config:

<system.web>
...
 <membership defaultProvider="mgsSqlMembershipProvider">
      <providers>
        <clear />
        <add name="mySqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" />
      </providers>
    </membership>
   <profile>
      <properties>
        <add name="FriendlyName" />
        <add name="MomsName" />
      </properties>
    </profile>
</system.web>

For the user porofile you can just create a new class named ExtendedUser

Partial Public Class User
        Inherits UserBase

Property FriendlyName() As String
Property MomsName As String

End Class

I never tested that in plain ASP.NET only used it for WCF services.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.