Click here to Skip to main content
16,016,425 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can someone help me please, i cant save data to database.It was working well before but something went wrong now. Can someone help me please.
i post same question in Stack overflow here is the link to access that question
http://stackoverflow.com/q/34236161/5487417?stw=2[^]


Help please !!
Posted
Comments
Rajdeep Debnath 12-Dec-15 18:30pm    
Hi, why using DateTime for ContactNo? is it a typo?

[Required(ErrorMessage = "Please Enter ContactNo")]
[RegularExpression(@"^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$", ErrorMessage = "Entered phone format is not valid.")]
public DateTime ContactNo { get; set; }

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