When I try this:
Sub Page_Load(Sender As Object, E As EventArgs)
If (Object.ReferenceEquals(Sender, geog_all)) Then
trace.warn("USER CLICKED geog_all BUTTON - don't hide DataGrid1"
end if
...
The compiler complains:
Compiler Error Message: BC32022: 'Public Event CheckedChanged(sender As Object, e As System.EventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
What I am trying to do is execute that IF block whenever radiobutton "geog_all" is checked and, thereby, does an autopostback which fires page_load.
What's the right way to do this, please?
Please help!
Thanks,
RebLazer
Sub Page_Load(Sender As Object, E As EventArgs)
If (Object.ReferenceEquals(Sender, geog_all)) Then
trace.warn("USER CLICKED geog_all BUTTON - don't hide DataGrid1"
end if
...
The compiler complains:
Compiler Error Message: BC32022: 'Public Event CheckedChanged(sender As Object, e As System.EventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
What I am trying to do is execute that IF block whenever radiobutton "geog_all" is checked and, thereby, does an autopostback which fires page_load.
What's the right way to do this, please?
Please help!
Thanks,
RebLazer