D
DC Gringo
I have a simple index.aspx page that declares and sets a sectionID in the
Page_Load. The in a user control later on in the page, I read the sectionID
variable (in the control's Page_Load) to determine which panel to show. It
does not work
"Name 'sectionID' is not declared" is my error while compiling the user
control.
What am I doing wrong?
This is in my main page's Page_Load
Dim sectionID As String = "about"
--
This is in my user control's Page_Load
If sectionID = "about" Then
pnlAbout.Visible = True
ElseIf sectionID = "home" Then
pnlHome.Visible = True
End If
_____
DC G
Page_Load. The in a user control later on in the page, I read the sectionID
variable (in the control's Page_Load) to determine which panel to show. It
does not work
"Name 'sectionID' is not declared" is my error while compiling the user
control.
What am I doing wrong?
This is in my main page's Page_Load
Dim sectionID As String = "about"
--
This is in my user control's Page_Load
If sectionID = "about" Then
pnlAbout.Visible = True
ElseIf sectionID = "home" Then
pnlHome.Visible = True
End If
_____
DC G