Jonas Stawski

Everything .NET and More

Textbox Text Changed event

On the last Code Camp at South Florida I told the students attending my session the only way for the text changed event of the textbox to get fired is if other controls, like a button, create a postback. I later found out that is not entirely true. That is one way to catch the event, but the textbox control also has an autopostback property. When this property is set to true, the page will do a postback when the text of the textbox is changed and it looses focus to some other control.

I apologize to everyone on the class for providing incorrect information.

As always... Happy Programming!

Comments (7) -

Jonas:  

The Web 101 class was excellent!  It was great fun and it put all of the basic web concepts into focus.  Could we ask you to post your power point presentation?  Hope to see you in Orlando.

Thanks

Reply

Steve,
   All my presentations can be downloaded from http://www.aspsoft.com/downloads.aspx

Reply

Jonas:  

Excellent, the material is very well organized and useful.

Thanks

Reply

Steve,
   Thank you for your comments, I appreciate them.

Reply

hi
I have a page with 2 textbox.
i want to put the text of first textbox
into second textbox after entering data to first textbox.
how can i do that in c# and asp.net2?
thanks

Reply

Do you have a button in that page?

Reply

/weblogs.asp.net/sukumarraju/
/weblogs.asp.net/sukumarraju/

Good one. Thanks.

Here is the requirement:-
Text changed event on TextBox, display lable Text.

Query:-Without setting the Text box autoPostBack property to 'True' (posting the form) the text on lable is not displayed. I think you have Ajax update control on this form?

Thanks,
Raju
sukumarraju6@gmail.com

Reply

Add comment

biuquote
Loading