Posted on: 6/7/2014 8:35:36 PM | Views : 439

I'm still a newbie at ASP so, bear with me...
I am trying to code a "simple" contact form for my web site.
I have four ASP:TextBox controls for the user to input his(her) First name, Last name, email address, Subjet and Comments. I also have a Send button. The smtp parts works great. The only problem I have is into validating the user input.
So I started by adding RequiredFieldValidator controls. One for each input.  They work great for generic text field but I quickly noticed I needed something a little more sophisticated for the email address. That's when I turned to RegularExpressionValidator but 1) that's not for the faint of heart and 2) it does not work for me.
I tried using the built-in ValidationExpression for email address. The form would still validate?
I searched online and found many (many) regex "sites". Last of which is http://www.regexr.com/. I ...

Go to the complete details ...