问题
I am developing a site where Email address should be used as the login name. Hence I am looking for options to remove the 'Username' field from the CreateUserWizard and keep only Email ID, Password,Confirm Password in the page. when I just removed the Username text box from the ASP.Net Page, it threw the exception. CreateUserWizardStep.ContentTemplate does not contain an IEditableTextControl with ID UserName for the username. Any ideas how to remove the Username Textbox from the createuserwizard?
回答1:
One approach is,
Remove the email
field from the wizard and modify the username
label to email
. Put validator to validate the username as an email. So Email should be validate when you click the create user button. Finally the bottom line is your user name is your email and vice versa.
See this link
来源:https://stackoverflow.com/questions/13577930/remove-username-field-from-the-createuserwizard-asp-net-4-0