How to validate email in asp.net mvc

How to validate email address in asp.net mvc razor

Validate email in Asp.Net MVC 3

Expression for email validation in asp.net mvc

RegularExpression for email validation in asp.net mvc

Type following code
[RegularExpression(".+\\@.+\\..+", ErrorMessage = "Please Enter your valid email")]
public string Email { get; set; }

About the Author

avatar