Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

email validation doesn't work with CreateUserWizard

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vincent - 20 Feb 2008 17:22 GMT
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
ABHIJIT B - 21 Feb 2008 15:36 GMT
Hi Vincent,

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

Best regards,

Abhijit B

> Hi,
>
[quoted text clipped - 29 lines]
> Thanks
> Vincent
Vincent - 21 Feb 2008 21:34 GMT
Hi Abhijit,

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

> Hi Vincent,
>
[quoted text clipped - 39 lines]
>> Thanks
>> Vincent
Keith G Hicks - 01 Mar 2008 20:36 GMT
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

> Hi,
>
[quoted text clipped - 29 lines]
> Thanks
> Vincent

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.