Click here to Skip to main content
12,953,479 members (57,756 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as


1 bookmarked
Posted 5 Oct 2012

Text box validations

, 5 Oct 2012 CPOL
Hi all,I have an issue...I have 4 pair of textboxes ,each pair one below the other.if user enters some values say 5 in textbox1 and 150 in textbox2.then he should not be able to enter the value between 5 and 150 in any of the textboxes,like wise validations on all text...


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

5 Oct 2012
Aarti Meswania
1.create component that inherit textbox,now create property, maxVal & minValthen overrite keypress eventand in key press event check, keychar is integer and it is minValnow build project, you will get this new control in toolboxuse it instead of normal texbox, set...
5 Oct 2012
U can try like that :in this example i have three textbox .in third textbox u cant enter the value between value of first two texbox. Javascript function : function fnKeyPress(key) { var a = document.getElementById('txt1').value; var b =...


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


About the Author

United States United States
No Biography provided

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.170525.1 | Last Updated 5 Oct 2012
Article Copyright 2012 by DileepkumarReddy
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid