Click here to Skip to main content
15,900,724 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,

I'm using 3 text boxes for allowing user selecting different ranges. I want to perform below validations on three text boxes.

1.User should enter a value (i.e. a valid number,doesn't allow to enter zero,decimal numbers and negative numbers) in 1st text box.

2. 2nd text box value should be greater than 1st text box.

3. 3rd text box value should be greater than 2nd text box.



I want to perform validations on client side only using JavaScript. If anything goes wrong I want to populate a message box.

How can I do this?



Regards,

NSJ
Posted
Comments
Sergey Alexandrovich Kryukov 28-Jan-11 11:33am    
Home assignment? Interview test? Why not doing it with your own hands -- any valid reason?
--SA
Sandeep Mewara 28-Jan-11 12:01pm    
Any effort? :doh:

Why you are trying to write your own javascript where ASP.NET Provides all the Inbuilt validation which you have required.
Validating ASP.NET Server Controls
[^]
 
Share this answer
 
Here's where you should have started: http://tinyurl.com/63oh77g[^]
 
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