M
Mark B
Even though I have EnableViewState set to true, CheckBox1 is not retaining
its value (false) on page reload.
I have an OnLoad page sub that queries a SQL table for the member's record.
I use Dim bolLoadedOnce As Boolean in the codebehind class for the page.
Then I use:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
If bolLoadedOnce = True Then
Else
fLoadMemberSettings()
bolLoadedOnce = True
End If
End Sub
When I un-tick CheckBox1 it automatically fires a page reload which loads up
CheckBox1 as True again. I want it to remember that I un-ticked it.
its value (false) on page reload.
I have an OnLoad page sub that queries a SQL table for the member's record.
I use Dim bolLoadedOnce As Boolean in the codebehind class for the page.
Then I use:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
If bolLoadedOnce = True Then
Else
fLoadMemberSettings()
bolLoadedOnce = True
End If
End Sub
When I un-tick CheckBox1 it automatically fires a page reload which loads up
CheckBox1 as True again. I want it to remember that I un-ticked it.