It seems that sometimes (but not always) my button click event is being fired twice. The fact that it seems to happen sometimes but not always is really puzzling me. Here is m
One possible reason:
Check your button declaration in your .aspx source. If you have a 'runat=server'
and onclick="button1_click"
, and you have an event handler in your code-behind (ie. .aspx.vb),
it will cause the event to be fired twice. Here is an example in xxx.aspx:
This declaration should be:
Good luck!