Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 20th, 2008, 01:20 PM
Friend of Wrox
Join Date: Apr 2006
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
Default email validation doesn't work in CreateUserWizard


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"
EmailRequiredErrorMessage="E-mailadres is required."
InvalidEmailErrorMessage="email not valid." >

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




Similar Threads
Thread Thread Starter Forum Replies Last Post
JS to check for form Validation does not work - pl jennypretty Classic ASP Basics 4 December 11th, 2008 11:18 PM
strut validation frame work issue pkherde Struts 1 June 7th, 2007 11:40 PM
email validation function keyvanjan ASP.NET 1.0 and 1.1 Basics 3 August 17th, 2006 05:30 PM
Email validation problem mattastic Javascript How-To 1 May 19th, 2005 01:10 AM
email validation tysta JSP Basics 3 June 23rd, 2003 12:43 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.