Groups | Blog | Home
all groups > asp.net webcontrols > november 2004 >

asp.net webcontrols : Validator Question


Patrick.O.Ige
11/14/2004 7:27:07 PM
Validating an email like code@code.com with expression :-
ValidationExpression="^[\w-]+@[\w-]+\.(com|net|org|edu|mil)$"
About if i want to validate code@code.com.au
Scott M.
11/14/2004 11:05:27 PM
Just a guess:

ValidationExpression="^[\w-]+@[\w-]+\.(com|net|org|edu|mil)+\.(com|net|org|edu|mil)$"

or

ValidationExpression="^[\w-]+@[\w-]+\.(com|net|org|edu|mil)$+\.(com|net|org|edu|mil)$"

[quoted text, click to view]

naija naija
11/24/2004 8:49:50 PM
Scott i tried that but it wasn't validating.!!
It had an Jscript error!
PAtrick


*** Sent via Developersdex http://www.developersdex.com ***
Scott M.
11/25/2004 9:48:06 AM
It works fine for me. Are you sure you haven't modified some of the other
script?


[quoted text, click to view]

AddThis Social Bookmark Button