D
damiensawyer
Hi,
I'm wondering if someone can help me with an autopostback issue.
I have three controls
Textbox1
Textbox2
button1
The textbox's have autopostback set to true. This is because we need to
do some validation in the textchanged event when they leave the control
to update a 'valid/invalid' label.
The thing is, I want to set up behaviour so that, when the user presses
the button, this validation is bypassed. I want the pressing of the
button to effective negate the autopostback of the textboxes.
I can't seem to be able to find a way to catch that the button has been
pressed. In the Page_Load event of the form when I catch the 'sender'
it seems to be giving me the form object. In the TextChanged event of
the textbox, 'sender' is giving me that textbox.
What I need, is a way to find out that the control that was pressed to
trigger the text changed event, was the button control (actually, it's
an anchor link, but I doubt that makes a difference.
Any help would be very much appreciated and thanks in advance,
Damien Sawyer
I'm wondering if someone can help me with an autopostback issue.
I have three controls
Textbox1
Textbox2
button1
The textbox's have autopostback set to true. This is because we need to
do some validation in the textchanged event when they leave the control
to update a 'valid/invalid' label.
The thing is, I want to set up behaviour so that, when the user presses
the button, this validation is bypassed. I want the pressing of the
button to effective negate the autopostback of the textboxes.
I can't seem to be able to find a way to catch that the button has been
pressed. In the Page_Load event of the form when I catch the 'sender'
it seems to be giving me the form object. In the TextChanged event of
the textbox, 'sender' is giving me that textbox.
What I need, is a way to find out that the control that was pressed to
trigger the text changed event, was the button control (actually, it's
an anchor link, but I doubt that makes a difference.
Any help would be very much appreciated and thanks in advance,
Damien Sawyer