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

  • Thread starter Thread starter charleswesley
  • Start date Start date
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
 
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

Back
Top