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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TextBox event 1

Status
Not open for further replies.

royyan

Programmer
Jul 18, 2001
148
US
I want to fire an event once I made change in the textbox and leave it. I used "TextChange" event. It fires only if I hit "Enter". Is there any way I can fire the event once I leave the textbox instead of hit the "enter" key?

Thanks!
 
When you hit enter you are actually using the submit method of the form to perform a postback. If you truly want to do a postback when the data in your text box has changed then set the AutoPostBack property of the text box to True. Once you do this anytime the text in your textbox changes and you move to another field either through a tab or a mouse click the form will preform a post back to the server. That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
no prob That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top