Validating User Input (numeric only, and valid email address attributes)

C

charleswesley

I find myself regularly needing to validate user input as either a)
numeric only or b) valid email address format ([email protected])

I am assuming that there are regular expressions that can be used to do
this as it doesn't appear that 1.1 includes this functionality itself.

I am interested to know if anyone has a simple vb.net example of a
solution to either of these issues. I'm new to regular expressions but
if I have a working example I am sure I can move forward from there

thanks
 
S

Siva M

Hi,
You can use RegularExpressionValidator controls to validate user input
against regular expressions.

Check out www.regexlib.com for specific regular expressions (including for
email addresses).

For a simple tutorial: http://www.developer.com/net/asp/article.php/2109501

I find myself regularly needing to validate user input as either a)
numeric only or b) valid email address format ([email protected])

I am assuming that there are regular expressions that can be used to do
this as it doesn't appear that 1.1 includes this functionality itself.

I am interested to know if anyone has a simple vb.net example of a
solution to either of these issues. I'm new to regular expressions but
if I have a working example I am sure I can move forward from there

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top