Groups | Blog | Home
all groups > asp.net > may 2005 >

asp.net : Check if variable value is a valid email.



Craig Deelsnyder
5/9/2005 8:40:24 PM
On Mon, 09 May 2005 20:07:46 -0500, Scott Allen
[quoted text, click to view]

Then when you're ready to write the regex, I highly suggest using
regexlib.com, plenty to choose from depending on how particular you want
to be:

http://regexlib.com/Search.aspx?k=email

--
Craig Deelsnyder
Scott Allen
5/9/2005 9:07:46 PM
Hi Miguel:

You can use a RegEx Validation control. Here is a walkthorugh to get
started with:
http://support.microsoft.com/default.aspx?scid=kb;en-us;316662

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 9 May 2005 23:29:02 +0000, "Shapper"
[quoted text, click to view]
Shapper
5/9/2005 11:29:02 PM
Hello,

I have an aspx.vb code with a function.
In this function I need to check if a variable is a valid email address.

Something like: address@domain.extension

How can I do this?

Thanks,
Miguel

Shapper
5/11/2005 12:17:22 AM
Hello,

I know the ASP.NET build in validation control to place in HTML code.

What I need is to check if variable myEmail has a valid email address.
I need to do this in my vb.net code in my aspx.vb code file.

Can someone send me an example of how to create this?

Thanks,
Miguel

[quoted text, click to view]
AddThis Social Bookmark Button