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.


i assume its ASP.NET

you can set these properties in the web.config:

 <membership defaultProvider="mgsSqlMembershipProvider">
        <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" />
        <add name="FriendlyName" />
        <add name="MomsName" />

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.