Hello,
I have a div in an aspx (vb .net 4.5) page:
When an ImageButton is clicked, it shows the div from code-behind:
For some reason, when a person hits the back button in the browser, this hidden div is always shown again. I have even put code in the Page Load to try getting round this.
Can anyone help?
Thanks
I have a div in an aspx (vb .net 4.5) page:
Code:
<div id="Div1" runat="server" class="shaded" style="display:none;"> </div>
When an ImageButton is clicked, it shows the div from code-behind:
Code:
Private Sub ImageButton1_Click(sender As Object, e As ImageClickEventArgs) Handles ImageButton1.Click
Me.Div1.Attributes.Add("style", "display:block")
End Sub
For some reason, when a person hits the back button in the browser, this hidden div is always shown again. I have even put code in the Page Load to try getting round this.
Can anyone help?
Thanks