Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
[Required]
public string email { get; set; }

is working

[RegularExpression] is not working
Posted
Comments
ankur_0603 6-Jan-16 8:23am    
GOT SOLUTION THANK YOU

1 solution

Can you more specific on your question.I guess below is solution for ur issues

C#
[Regular Ex pression( "^[a-z0-9_\\+-]+(\\.[a-z0-9_\\+-]+)*@[a-z0-9-]+(\\.[a-z0-9]+)*\\.([a-z]{2,4})$" , ErrorMessage = "Invalid email format." )]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900