-1

Say i'm creating an email list. How would I validate the field to not accept text without the '@' sign?

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Hassassin
  • 21
  • 2
  • http://stackoverflow.com/questions/1710505/asp-net-email-validator-regex/1710535#1710535 – cHao Apr 10 '11 at 09:39

1 Answers1

0

You can check indexOf() method. It will return an integer.

If email.indexOf("@") < 3 Then
MessageBox("Invalid email")
End If

I think this syntax is correct. Not sure ;)

Anuraj
  • 18,859
  • 7
  • 53
  • 79