Showing posts with label rangevalidator. Show all posts
Showing posts with label rangevalidator. Show all posts

Saturday, 22 March 2014

how to use rangevalidator in asp.net

Range ValidatorCheck that the value in the validated control has specific defined range. user's input is in a given range(Number or Character).  
Event will fire or control will validate only once user click on Button.
Important Property which need to handle for Range Validator is;

ControlToValidate – Linked with id which control to validate;
EnableClientScript - specifies client-side validation is enabled or not (true/false)
DisplayContain three value None- the control is not displayed; Static - Control displays an error message if it’s not validate. Space is kept on the page for the message; Dynamic - Control displays an error message if it’s not validate. Space is not kept on the page for the message;
Enabled - specifies whether the validation control is enabled or not(true/false)
ErrorMessage - text to display in the ValidationSummary control when validation fails, it display in validation control also