Dynamic Header for Ajax TabControl

wdrtuttasw

New Member
I have 2 panels inside a HeaderTemplate.
Is it possible to show only one panel at a time?
That is if the tab is active show \[code\]pnlContainerHighLightCP\[/code\], if it is inactive show \[code\]pnlContainerCP\[/code\].Code:\[code\]<HeaderTemplate> <asp:Panel ID="pnlContainerHighLightCP" runat="server"> <div style="position: relative;"> <img src="http://stackoverflow.com/questions/Images/Tab_Button_Background.png" alt="Control Permissions" /> <div style="position: absolute; top: 0; left: 0; margin-top: 10px; margin-left: 10px; font-family: Arial; font-size: 13px; font-weight: bold; font-style: normal; text-decoration: none; color: #FFFFFF;"> Active TEXT </div> </div> </asp:Panel> <asp:Panel ID="pnlContainerCP" runat="server" BorderWidth="1" style="vertical-align:text-top;"> <asp:LinkButton ID="lnkBtnHeaderLinkCP" runat="server" Text="InActive Text" Style="font-family: Arial; font-size: 13px; font-weight: bold; font-style: normal; text-decoration: none; color: #3399CC;"></asp:LinkButton> </asp:Panel></HeaderTemplate>\[/code\]
 
Back
Top