S
steve
I have a aspx form that has focus set to an <asp:button> on the form
when the user clicks an area within a <form></form>. This causes the
click event on that control to fire even though the control was not
clicked. For example, if the button was a "save" button, the form would
be saved whenever the form was posted back. There is no __EVENTTARGET
set on the page, nor attributes added... nothing special about the form
really. Now I know the postback emulates a submit button click, but it
shouldn't fire the click event of a button on that page should it?
Naturally I have another form which behaves differently (& correctly
as I understand things) to further make my hair fall out!
Any help would be greatly appreciated.
BTW, lots of code in the form which is why I didn't post it
when the user clicks an area within a <form></form>. This causes the
click event on that control to fire even though the control was not
clicked. For example, if the button was a "save" button, the form would
be saved whenever the form was posted back. There is no __EVENTTARGET
set on the page, nor attributes added... nothing special about the form
really. Now I know the postback emulates a submit button click, but it
shouldn't fire the click event of a button on that page should it?
Naturally I have another form which behaves differently (& correctly
as I understand things) to further make my hair fall out!
Any help would be greatly appreciated.
BTW, lots of code in the form which is why I didn't post it