Latest

Validate EmailAddress in Asp.net using RegularExpressionValidator Control

Here are the steps to validate EmailAddress in Asp.net using RegularExpressionValidator Control.


Step 1 :
  Add a RegularExpressionValidator control to your web page.
Step 2: 
         Right click on the control and select properties.

    • Set the ControlToValidate property to indicate which control to validate.
    • Set the ValidationExpression property to  regular expression as shown
      in below image.



                    

No comments