[Required(ErrorMessage = "Please enter your Name")]
publicstring UserName { get; set; }
[Display(Name = "Phone")]
[StringLength(20, ErrorMessage = "The field Phone must be a char with a maximum length of 20.")][RegularExpression(@"^([0]|\+91[\-\s]?)?[789]\d{9}$", ErrorMessage = "Entered Mobile No
is not valid.")]
[Required(ErrorMessage = "Please enter your Phone Number")]
publicstring PhoneNumber { get; set; }
[Required(ErrorMessage = "Please enter your email address")]
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Can you answer this question?
Write Answer1 Answers