forum

Home / DeveloperSection / Forums / Why Range Data Annotation is not working on checkbox in client side?

Why Range Data Annotation is not working on checkbox in client side?

Anonymous User305818-Aug-2014

I have a form with some fields with the Required Data Annotation and then i have a "Accept Terms and Conditions" checkbox with the Data Annotation [Range(typeof(bool), "true", "true", ErrorMessage="You must accept Terms And Conditions to proceed")] Everything works fine but the thing that is annoying is that the Required Data Annotation fires the errors before post.. i mean, i click on submit and the form does not make a post and it shows the errors but with the Range, the form post and then shows the errors.

Why is that? is that a common behavior?


Updated on 18-Aug-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By