Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi 1. How i do custom validate and it must be given range?
2. if i give minimum range it has to show error?

example:
Given range is 10 if i give 5 or 8 it has to show error?
Posted

 
Share this answer
 
Comments
Rahul Rajat Singh 6-Jul-12 4:02am    
good links. +5.
Prasad_Kulkarni 6-Jul-12 4:24am    
Thank you Rahul!
Manas Bhardwaj 6-Jul-12 5:45am    
good links. +5.
Prasad_Kulkarni 6-Jul-12 6:05am    
Thank you Manas!
you can perform this action by RangeValidator, no need to use CustomValidator.
if you want to perform it by CustomValidator then:-
I. create a function that will check whethter range is below 10 or not.
II. then call this function in OnServerValidate property of CustomValidator control

best of luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900