In DB i have decimal type like decimal(10, 2)
Can i validate input filed on MVC 3.0 model if is decimal like for URL: [Url] ,…
Does anything like this already exist or i must write custom validator?
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.
Decimal fields are automatically validated by the default model binder. You don’t need to do anything special. If you try to assign an invalid value to a decimal field on your view model you will get a validation error.