Goal:
Validate input data in my e-formulary.
Question:
What syntax code (dataannotations) do I need to ensure that data is int or decimal?
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.
If you are recieving your data from an input box, you can use a
TryParseon your data. e.g.…Same goes for an int, with
int.TryParse();