Button Event does not fire every time

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?
 
R

Russ

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top