Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I let user to provide number between 1-12 in asp.net.
Posted
Comments
ChauhanAjay 12-Sep-14 3:09am    
Why don't you use a dropdown instead of restricting the user from entering a values from 1 to 12.

So simple....

Use Range Validator.... :-)
 
Share this answer
 
See this Example on w3schools. This is having Maximum value as 100. You can edit it to 12

http://www.w3schools.com/aspnet/showaspx.asp?filename=demo_rangevalidator2[^]
 
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