How do I make a Asp:Panel Visible if its within a datalist

liunx

Guest
I have A datalist.

Inside the datalist are a bunch of panels.

I want to be able to click on Info and have the InfoPanel Visible, and the CompanyPanel InVisible.

Here is my code


Sub ContactFormShow( s As Object, e As EventArgs )
CompanylinksPanel.Visible = False
AffiliateLinksPanel.Visible = False
ContactFormPanel.Visible = True
CompanyInfoPanel.Visible = False
End Sub




I get an error saying the panels arent declared, but they are runat "server"

Any help would be greatly appreciated.
:)
 
Back
Top