B
Boban Dragojlovic
I have a textbox control on a webform which contains the following
attribute:
AutoPostBack="True" OnTextChanged="RunSomeCode"
if the user types something into the textbox and presses the TAB button, for
example, everything is fine.
But if the user types something into the textbox and then presses ENTER, the
form is submitted twice (I traced through it, and the Form Load ... Form
Unload cycle occurs 2 times) which causes many problems.
Any idea why, or, more importantly, how to prevent it?
attribute:
AutoPostBack="True" OnTextChanged="RunSomeCode"
if the user types something into the textbox and presses the TAB button, for
example, everything is fine.
But if the user types something into the textbox and then presses ENTER, the
form is submitted twice (I traced through it, and the Form Load ... Form
Unload cycle occurs 2 times) which causes many problems.
Any idea why, or, more importantly, how to prevent it?