I am using a rad panel bar in which i have buttons, now i want to change the button css from the code behind but the button is inaccessible.
here is the code snippet
<
telerik:RadPanelBar runat="server" ID="RadPanelBar1" BorderColor="transparent" BackColor="transparent"
AllowCollapseAllItems="true" Style="" Height="550px" Width="200px" ExpandMode="singleExpandedItem"
Skin="Telerik">
<Items>
<telerik:RadPanelItem Text="Home" Expanded="True" runat="server">
<Items>
<telerik:RadPanelItem runat="server">
<ItemTemplate>
<asp:LinkButton ID="LinkButton13" runat="server" CssClass="MyGridView" OnClick="LinkButton13_Click"
Height="25px" Width="200px" Font-Names="Verdana" Font-Size="8pt" Font-Underline="False"
ForeColor="Blue" OnClientClick="javascript:ToggleCollapsePane('LeftPane')">
National</asp:LinkButton>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
code behind
protected void LinkButton13_Click(object sender, EventArgs e)
{
LinkButton13.CssClass="Test";
}
it is displaying error "linkbutton13 does not exist in the current context"