SyntaxFix
Write A Post
Hire A Developer
Questions
You need a regular expression for this. Look here. If you are using .net Framework4.5 then you can also use this. As it is built in .net Framework 4.5. Example
[EmailAddress(ErrorMessage = "Invalid Email Address")] public string Email { get; set; }