Textbox OnTextChanged and Button Click Event Not Firing
Posted
by goodwince
on Stack Overflow
See other posts from Stack Overflow
or by goodwince
Published on 2010-05-20T15:39:45Z
Indexed on
2010/05/20
15:40 UTC
Read the original article
Hit count: 809
I have textboxes being generated by a repeater that use OnTextChanged with autopostback enabled so that I can know when when the values change. This all works perfect.
The problem starts when I try to click on any buttons on the page. The loss of focus triggers the event for the OnTextChanged; however, the event for my buttons never get fired.
I checked this in the debugger and while debugging if I put a break-point in the page_load it will call both; however, without the break-point it still only calls the OnTextChanged event.
I found this post on JavaScript. If my problem is also JavaScript related, why does the clicking of the button fire in debug mode?
Thanks.
© Stack Overflow or respective owner