Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please help me
I have two asp:textbox i want at time user enter value only one textbox
if client enter value in textbox1 then they not enter the value in textbox2 and if client enter value in textbox2 then they not enter the value in textbox1
Posted

1 solution

You need to write a fair bit of javascript to do this. Either erasing one box if they type into the other, or forbidding input into one if the other has a value.

The other way is to only allow one to be visible, and let the user choose. Still some js to do that.

Please tag your questions properly. If you'd just said 'textbox', nothing in your post would have told me this was a web app
 
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