how to create users with CreateUserWizard by only enterng username?

A

Albert

Hi,

i want to create users with the control CreateUserWizard, but by only
entering the username. That's why i use the property RequireEmail="false".
In the CreateUserWizard1_CreatingUser event, the emailaddress is then
programmatically made by adding "@xxx.zz" to the username.


But when running this, i still get the error "Please enter a valid e-mail
address".
How can i avoid that error and create users only with entering the username?

Thanks for help.
Albert


<asp:CreateUserWizard ID="CreateUserWizard1" RequireEmail="false"
AutoGeneratePassword="true" runat="server" >
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1"
runat="server">
<ContentTemplate>
<asp:Label ID="UserNameLabel" Text="user:" runat="server"
AssociatedControlID="UserName">
</asp:Label>
<asp:TextBox ID="UserName" runat="server"></asp:TextBox>
</ContentTemplate>
</asp:CreateUserWizardStep>
<asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
<ContentTemplate>
You are logged
</ContentTemplate>
</asp:CompleteWizardStep>
</WizardSteps>
</asp:CreateUserWizard>
 

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,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top