从CreateUserWizard控件asp.net 4.0中删除用户名字段 [英] remove username field from the CreateUserWizard asp.net 4.0

查看:222
本文介绍了从CreateUserWizard控件asp.net 4.0中删除用户名字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发展的地方电子邮件地址应该被用作登录名的网站。因此,我要寻找选项,从CreateUserWizard控件中删除用户名字段,只保留电子邮件ID,密码,确认密码的页面。当我只是删除从ASP.Net页面的用户名文本框中,它抛出异常。
CreateUserWizardStep.ContentTemplate未包含的IEditableTextControl与ID用户名的用户名。
任何想法如何从CreateUserWizard控件删除用户名文本框?

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?

推荐答案

一种方法是,
从向导中删除电子邮件字段,并修改用户名标签电子邮件。把验证验证用户名作为邮件。所以,当您单击创建用户按钮电子邮件应验证。最后的底线是你的用户名是您的电子邮件,反之亦然。

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.

请参阅此链接

这篇关于从CreateUserWizard控件asp.net 4.0中删除用户名字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆