email validation doesn't work with CreateUserWizard

V

Vincent

Hi,

With this CreateuserWizard code, i have two problems:

1) when email is left empty => "email not valid." and not "E-mailadres is
required." (never shown).
When is "E-mailadres is required." shown?

2) anything as email is accepted: "This is not a valid emailaddress" is
never shown. Do i have to put a Regularexpressionvalidator control myself?
But then what's the purpose of the property 'EmailRegularExpression'?


<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
DuplicateEmailErrorMessage="email already exist."
EmailRegularExpressionErrorMessage="This is not a valid emailaddress"
EmailRegularExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
EmailRequiredErrorMessage="E-mailadres is required."
InvalidEmailErrorMessage="email not valid." >

<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
<ContentTemplate>
<asp:Label ID="EmailLabel" runat="server" Text="E-mail:"></asp:Label>
<asp:TextBox ID="Email" runat="server"
ValidationGroup="CreateUserWizard1"></asp:TextBox>
<br>
<asp:Literal ID="ErrorMessage" runat="server"
EnableViewState="False"></asp:Literal>

....

Thanks
Vincent
 
A

ABHIJIT B

Hi Vincent,

While inserting new user on Submit button again check Email textbox
should not be blank.

Best regards,

Abhijit B
 
V

Vincent

Hi Abhijit,

thanks for replying, but i don't understand what you mean ...

ABHIJIT B said:
Hi Vincent,

While inserting new user on Submit button again check Email textbox
should not be blank.

Best regards,

Abhijit B

Hi,

With this CreateuserWizard code, i have two problems:

1) when email is left empty => "email not valid." and not "E-mailadres is
required." (never shown).
When is "E-mailadres is required." shown?

2) anything as email is accepted: "This is not a valid emailaddress" is
never shown. Do i have to put a Regularexpressionvalidator control
myself?
But then what's the purpose of the property 'EmailRegularExpression'?

<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
DuplicateEmailErrorMessage="email already exist."
EmailRegularExpressionErrorMessage="This is not a valid emailaddress"
EmailRegularExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
EmailRequiredErrorMessage="E-mailadres is required."
InvalidEmailErrorMessage="email not valid." >

<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
<ContentTemplate>
<asp:Label ID="EmailLabel" runat="server" Text="E-mail:"></asp:Label>
<asp:TextBox ID="Email" runat="server"
ValidationGroup="CreateUserWizard1"></asp:TextBox>
<br>
<asp:Literal ID="ErrorMessage" runat="server"
EnableViewState="False"></asp:Literal>

...

Thanks
Vincent
 
K

Keith G Hicks

Vincent,

Did you ever solve this? I'm having the same problem. Seems like MS just
goes so far with things and then drops the ball.

Keith
 

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,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top