Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > EMail Validation (Regular Expression)

Reply
Thread Tools

EMail Validation (Regular Expression)

 
 
Clive
Guest
Posts: n/a
 
      09-22-2003
Hi,

I am using below email validator.

On tabbing out of my textbox it displays an error if it si
not in the correct format.

If i go back and input http://www.velocityreviews.com/forums/(E-Mail Removed) it still
displays the error and I can't submit my form. Why is this?

<asp:RegularExpressionValidator id="EAV" Font-Size="10"
Font-Bold="True" controltovalidate="txEMail"
runat="server" ErrorMessage="EMail Adress must be valid"
RegularExpression="^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.
[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)
$"></asp:RegularExpressionValidator>
 
Reply With Quote
 
 
 
 
vMike
Guest
Posts: n/a
 
      09-22-2003
Try changing RegularExpression= to ValidationExpression=
"Clive" <(E-Mail Removed)> wrote in message
news:05df01c38148$85cf0030$(E-Mail Removed)...
> Hi,
>
> I am using below email validator.
>
> On tabbing out of my textbox it displays an error if it si
> not in the correct format.
>
> If i go back and input (E-Mail Removed) it still
> displays the error and I can't submit my form. Why is this?
>
> <asp:RegularExpressionValidator id="EAV" Font-Size="10"
> Font-Bold="True" controltovalidate="txEMail"
> runat="server" ErrorMessage="EMail Adress must be valid"
> RegularExpression="^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.
> [0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)
> $"></asp:RegularExpressionValidator>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying a Validation Error in a Validation Summary Control Lucas Tam ASP .Net 2 02-26-2004 07:49 PM
ASP.NET Web Forms Validation Controls are Server-Side or Client-Side Validation? Matt ASP .Net 14 01-30-2004 09:15 AM
Web form validation vs object validation Colin Basterfield ASP .Net 1 11-29-2003 12:10 AM
validation summary doesnt display when there's client-side validation Libs ASP .Net 0 06-25-2003 03:05 PM
Re: only custom validation control does server side validation? Colin Mackay ASP .Net 0 06-25-2003 07:54 AM



Advertisments