This is a migrated thread and some comments may be shown as answers.

Session time expired

1 Answer 50 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Foppa
Top achievements
Rank 1
Foppa asked on 02 Jun 2010, 07:48 AM
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:
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);                  
            )  
)  
 
master:
 <Telerik: RadPanelBar OnInit = "Menu_Init" id = "Menu" runat = "server" PersistStateInCookie = "true" 
                Width = "160">  
</ Telerik: RadPanelBar> 
 
xml:
<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?


1 Answer, 1 is accepted

Sort by
0
Foppa
Top achievements
Rank 1
answered on 02 Jun 2010, 11:57 AM

I have solved the problem. It was nothing wrong with RadPanelBar. In my PageBase.cs I checked if the session time had expired and then I did

Response.Redirect (Request.UrlReferrer.AbsoluteUri);

Had some logic for protected pages there. Not so good!

Tags
PanelBar
Asked by
Foppa
Top achievements
Rank 1
Answers by
Foppa
Top achievements
Rank 1
Share this question
or