Click here to Skip to main content
11,920,211 members (47,486 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as


1 bookmarked

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
Web03 | 2.8.151120.1 | Last Updated 5 Oct 2012
Article Copyright 2012 by DileepkumarReddy
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid