Button Event does not fire every time

  • Thread starter Thread starter nesr235
  • Start date Start date
N

nesr235

I am having problems with my Button event not firing every time. I
have a web page where the customer can enter search criteria and click
a (search) button. This works fine the first time. But the next time
nothing happens. In debug mode I can watch it go to "Page_Init"
and then to "Page_Load" but never to the "button_Click"
subroutine. If I then click the button again, it goes to
"Page_Init" and then to "Page_Load" and then to the
"button_Click" subroutine. Any one have any ideas?
 
Never Mind. After several hours I found the problem. The text box
that the search criteria had autopostback=True. This must have caused
the textchange event to fire instead of the button click event.
 
Back
Top