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!!!
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!!!