Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture a specific value from Multi-Line Text box (asp.net, C#)

Status
Not open for further replies.

proximity

Technical User
Sep 19, 2002
132
GB
How can I detect a value in a multi-line text box then run some code based on the result?

EG:

Text Box has these values:
123456
123457
123458
123459
1000001

When the user enters the value 1000001, I want it to call some code.

Thanks.
 
The best way to do this would be to use javascript to detect the key strokes and when that value is entered, trigger your code.
Do you want to trigger code on the page, or a background process?
 
Hi, thanks for getting back. Yes, as soon as the 1000001 is entered I imagine it will click a hidden button to call the on_click event?
 
You could have a postback happen and trigger code.
Personally, I would use JQuery to make an AJAX call to a handler. Have that do what ever code you need. This way, you are not dealing with a post back.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top