CreateUserWizard

A

arun

Hi

How can I disable the UserName option in the CreateUserWizard and use
the Email instead of UserName.

At the least how can I pass @Email as a parameter to the Stored
Procedure for Creating a new user so that I can enter it instead of
@UserName.
 
E

Erik Funkenbusch

Hi

How can I disable the UserName option in the CreateUserWizard and use
the Email instead of UserName.

At the least how can I pass @Email as a parameter to the Stored
Procedure for Creating a new user so that I can enter it instead of
@UserName.

As far as I know, Username is required. If you'd like to use the email for
the username, then just convert the control to a template and change the
label from "UserName" to "Email".
 
A

arun

Thanks for your reply. I got another solution

Hide the UserName textbox, remove the RequireFieldValidator for
username.
And inserting the Email as username through code as follows

protected void CreateUserWizard1_CreatingUser(object sender,
LoginCancelEventArgs e)
{
CreateUserWizard1.UserName = CreateUserWizard1.Email.ToString();
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top