A
Alex Shirley
Hi
On my webform I have a textbox in which autopostback is set to true. (nb
I don’t want to disable this because I have manipulating the visibility
of other controls, but for the purposes of the exercise I’ve stripped
that code out for the time being).
What’s happening
a) If I click the submit button on the web form then the submit buttons
click event is triggered [which is good].
If I click on the textbox set to autopostback, then click on another
textbox not set to autopostback, the submit buttons click event is
triggered [which still is good].
However….
If I click on the textbox set to autopostback, and then immediately
click the submit button, then that buttons click event is not triggered
[which is bad]. I have to press the submit button again to trigger the
click event. It’s as if there are two postback events which are being
queued here.
Any ideas on how to solve this (I’m using asp.net/vb)?
Many Thanks
Alex
p.s.
I appear to be posting every day here. Sorry about this, I’m pretty new
to these “complex” forms. I’m RTFM’ing the manual but still getting
nowhere sometimes.
On my webform I have a textbox in which autopostback is set to true. (nb
I don’t want to disable this because I have manipulating the visibility
of other controls, but for the purposes of the exercise I’ve stripped
that code out for the time being).
What’s happening
a) If I click the submit button on the web form then the submit buttons
click event is triggered [which is good].
If I click on the textbox set to autopostback, then click on another
textbox not set to autopostback, the submit buttons click event is
triggered [which still is good].
However….
If I click on the textbox set to autopostback, and then immediately
click the submit button, then that buttons click event is not triggered
[which is bad]. I have to press the submit button again to trigger the
click event. It’s as if there are two postback events which are being
queued here.
Any ideas on how to solve this (I’m using asp.net/vb)?
Many Thanks
Alex
p.s.
I appear to be posting every day here. Sorry about this, I’m pretty new
to these “complex” forms. I’m RTFM’ing the manual but still getting
nowhere sometimes.