By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,188 Members | 832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,188 IT Pros & Developers. It's quick & easy.

Textchanged event fires on every post

P: n/a
I used the textchanged event of textbox and set the autopostback property to
true. The textchanged event should fire when the content of the textbox is
changed and user tab out of the textbox control. However, textchanged event
fires whenever there is a postback, even when I click a button that send
postback. Can anybody tell we what change I should make so that textchanged
event only fire when the content is changed?

Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Hi Samuel,

"The textchanged event should fire when the content of the textbox is
changed and user tab out of the textbox control."

That is not true. Not all of the web control cause a postback. TextBox is
one of them. Please take a look at this to understand the asp.net event model
better:

http://msdn.microsoft.com/library/de...EventModel.asp

If you want to cause a postback on every change on the textbox immediately,
you will have to use a javascript function to create a manual postback.
Hope that helps,

Ethem

"Samuel Chan" wrote:
I used the textchanged event of textbox and set the autopostback property to
true. The textchanged event should fire when the content of the textbox is
changed and user tab out of the textbox control. However, textchanged event
fires whenever there is a postback, even when I click a button that send
postback. Can anybody tell we what change I should make so that textchanged
event only fire when the content is changed?

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.