remove username field from the CreateUserWizard asp.net 4.0

岁酱吖の 提交于 2020-01-04 11:43:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!