When the session time has expired the panelbar doesn’t work. When I click on a link it doesn’t open the selected page, but the page I’m on is reloaded and directly after that can I click on the link and right page opens. But this only happen when session time has expired, otherwise it works great .
I’m use xml to load the panelbar and the menu is in a masterpage.
master.cs:
master:
xml:
I’m use xml to load the panelbar and the menu is in a masterpage.
master.cs:
protected void Menu_Init (object sender, EventArgs e) |
( |
... |
XMLstring = menyroot.InnerXml; |
XMLstring = |
"<? Xml version = \" 1.0 \ "encoding = \" utf-8 \ "?>" + |
"<PanelBar>" XMLstring + + |
"</ PanelBar>"; |
/ / Load menu menutree intonation component ... |
if (XMLstring! = null & & ((string) XMLstring! = "")) |
( |
Menu.LoadXml (XMLstring); |
) |
) |
<Telerik: RadPanelBar OnInit = "Menu_Init" id = "Menu" runat = "server" PersistStateInCookie = "true" |
Width = "160"> |
</ Telerik: RadPanelBar> |
<Item Text="ContractCatalog"> |
<Item Text="EntireContractCatalog" NavigateUrl="~/Contract/Catalog/Default.aspx"></Item> |
<Item Text="Search" NavigateUrl="~/Contract/Search/Default.aspx"></Item> |
<Item Text="SubscribeContract" NavigateUrl="~/Contract/SubscribeContract/Default.aspx"></Item> |
</Item> |
Any suggestion what I should do?