Add some code so that when a check box is ticked set a variable.
On return to the page if the variable is set then fill in the tick on the page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Session("CheckBox1IsChecked") = "Y" Then
CheckBox1.Checked = True
End If
End Sub
Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
If CheckBox1.Checked = True Then
Session("CheckBox1IsChecked") = "Y"
End If
End Sub
Make sure that to start with the Session("CheckBox1IsChecked") is set to something other than "Y"
|