How to validate that user enters string in textbox in asp mvc4?
What to write in required tag?
[required]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the
[RegularExpression]attribute if you want to limit the user to only typing in alphabetic characters.More info on MSDN.
Here is a good link to a regular expression that you can use.