Click here to Skip to main content
15,917,481 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I gave a good thought but had no success. Please help.

How can we set the range on STRINGS in rangevalidators?

Thanks in advance.
Posted
Updated 15-Dec-10 17:58pm
v2
Comments
test-09 15-Dec-10 23:36pm    
Do not cross post.
Sandeep Mewara 16-Dec-10 0:45am    
What exactly are you trying to do? Explaining your scenario might help us more on suggesting the resolution.
fjdiewornncalwe 25-Dec-10 18:55pm    
Either you have two logins and you are cross posting the questions from one to the other, or you are copying homework questions word for word to this forum looking for answers without putting in any effort at all on your own. You have received an answer below and it looks valid, but in the future, for your own benefit, please make an attempt on your own and reflect that effort in your question to us. We'll be happy to help you along your way then.

1 solution

take range validator ,set controltovalidate to control you are using like controltovalidate= textbox1
minimum value=a
maximum value = h

if u put character greater than h like i ,j or zebra ,yellow
it will shoew error message..


:( hope you get your answer ...
if not so please describe more..
 
Share this answer
 
v2
Comments
Dalek Dave 16-Dec-10 4:37am    
Good Call.

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