473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

email validation doesn't work with CreateUserWizard

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
Feb 20 '08 #1
3 4612
Hi Vincent,

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

Best regards,

Abhijit B

On Feb 20, 12:22 pm, "Vincent" <vi,@sd.cvwrote:
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
Feb 21 '08 #2
Hi Abhijit,

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

"ABHIJIT B" <ab***************@gmail.comschreef in bericht
news:af**********************************@s8g2000p rg.googlegroups.com...
Hi Vincent,

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

Best regards,

Abhijit B

On Feb 20, 12:22 pm, "Vincent" <vi,@sd.cvwrote:
>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

Feb 22 '08 #3
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
"Vincent" <vi,@sd.cvwrote in message
news:#i**************@TK2MSFTNGP02.phx.gbl...
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


Mar 1 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
2
by: VB Programmer | last post by:
I have several required field validators on each step of my CreateUserWizard. When I click Next it goes to the next step, even though the user hasn't typed anything in. I placed each "page"...
2
by: winnie_us99 | last post by:
Hi All, I am trying to do validation on my text field before going to the next page to create a user. It doesn't look like the next button will fire any validation. Am I missing something? Can...
2
by: Learner | last post by:
Hello, I have defined another textbox control in the CreateUserWizard control and this is how I am trying to get the value of it in the code behind page is below im myStep As...
0
by: Smokey Grindle | last post by:
I am using the user creation wizard in asp.net 2.0 and using it to send the user an email message when their account is created, well this works great if the address is a valid mailbox, but when it...
2
by: jumblesale | last post by:
Hello, I am using a CreateUserWizard sign up control and wish to use server-side validation on the CreateUserWizardStep - my question is, which event do I need to wire my validation up to so that...
1
by: Mahernoz | last post by:
Hi Friends, I have a Registration page which uses Asp.net CreateUserWizard Control. Now I want to send a unique value(a guid) by which i can be sure that the email address is of that user only....
0
by: asumal | last post by:
Hello I am new to ASP.NET. I am using CreateUserWizard control to register & create a user. I am using Membership API. I have a Cancel button on the second step of CreateUserWizard control...
4
by: gurufordy | last post by:
Hello. Trying to use the ASP.net user functionality but it keeps failing on me. I have created a login and registration page for my site. When you fill in the registration form it should send a...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.