Session time expired

2 posts, 0 answers
  1. Foppa
    Foppa avatar
    9 posts
    Member since:
    Apr 2007

    Posted 02 Jun 2010 Link to this post

    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?


  2. Foppa
    Foppa avatar
    9 posts
    Member since:
    Apr 2007

    Posted 02 Jun 2010 Link to this post

    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!

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top