I'm new to the workings of Web Forms.
I've placed a number of controls on a web form and am trying to set the 'Visible' property of one of the panels dependent on the 'Checked' status of a CheckBox.
I'm using the 'CheckedChanged' event code and setting 'AutoPostBack' = True such that the panel shows / hides on reponse of the user changing the state of the checkbox.
However, this poses something of a problem in itself.
As the form is 'auto posting back' when the user hits the 'Back' button on the browser - the page reloads to it's state prior to the checkbox being checked / unchecked.
I'd favour it going back to the calling form - rather than just undoing the 'posted' event from the form.
Any clues with this at all ?
Any help would be greatly received.
Thanks in advance
Steve
I've placed a number of controls on a web form and am trying to set the 'Visible' property of one of the panels dependent on the 'Checked' status of a CheckBox.
I'm using the 'CheckedChanged' event code and setting 'AutoPostBack' = True such that the panel shows / hides on reponse of the user changing the state of the checkbox.
However, this poses something of a problem in itself.
As the form is 'auto posting back' when the user hits the 'Back' button on the browser - the page reloads to it's state prior to the checkbox being checked / unchecked.
I'd favour it going back to the calling form - rather than just undoing the 'posted' event from the form.
Any clues with this at all ?
Any help would be greatly received.
Thanks in advance
Steve