Need to click a button twice .. Bug?

G

Guest

Hello All,

I have an asp:button and I have tied an eventhandler to this button's click
event which means that the eventhandler should be executed everytime I click
the button. But to my frustration, the eventhandler does not get executed
everytime I click the button. I have to click the button twice at times to
make sure that the event handler is being called. Why is the control behaving
in this way? This problem is not specific for a page but this is persistent
in other pages where I end up clicking the button twice which is frustrating.

I tried debugging this behavior by putting a breakpoint inside the
eventhandler. When the eventhandler is called, the flow reaches the
breakpoint inside the event handler but in case where I need to click the
button twice, the execution does not reach the breakpoint though it goes into
page_load method and stops there. Why is this happening? Am I doing anything
wrong?

Thanks!!!
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top