Session lost while opening Rad/Modal window from Another Rad/Modal window

4 posts, 0 answers
  1. Archana
    Archana avatar
    17 posts
    Member since:
    Jun 2011

    Posted 10 Aug 2011 Link to this post

    Hi,

    In my application I want to open a Rad/Modal window from normal aspx page. This works fine and I can even get the Session.
    But when I open another Rad/Modal window from the this new Rad/Modal window it starts a new Session.
    I'm using same code to open both windows thats given below:

     

     

    function ShowRadForm(ID) {
      
    window.radopen("../RadWin1.aspx?ID=" + ID, "radDialog");
      
    return false;
      
    }
      
      
      
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" AutoSize="true">
      
      
    <Windows>
      
      
    <telerik:RadWindow ID="radDialog" runat="server" Title="Edit"
      
      
    Height="550px" Width="900px" ReloadOnShow="true" ShowContentDuringLoad="false"
      
      
    OnClientClose="OnClientClose" Modal="true" Style="z-index: 7001" />
      
      
    </Windows>
      
      
    </telerik:RadWindowManager>

    How can I get Session in radDialog?

     

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4616 posts

    Posted 11 Aug 2011 Link to this post

    Hi Archana,

    The Session object is a server-side object and there is no way to retrieve it on the client, except for populating a hidden fiels/label/textbox/etc server control with the desired value on the server. As for a new session being created when you open a RadWindow - this is controlled by the framework and we have no control over it. If the user has been idle long enough and requests a new page (i.e. opens it in a RadWindow or in a browser window) a new session will be created. Please examine the following MSDN articles for more information on the subject:
    http://msdn.microsoft.com/en-us/library/ms178581.aspx
    http://msdn.microsoft.com/en-us/library/ms524319(v=vs.90).aspx
    http://msdn.microsoft.com/en-us/library/ms972429.aspx
    http://msdn.microsoft.com/en-us/magazine/cc301579.aspx


    Kind regards,
    Marin
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Archana
    Archana avatar
    17 posts
    Member since:
    Jun 2011

    Posted 11 Aug 2011 Link to this post

    When I searched for it I found solution in following link:

    http://support.microsoft.com/kb/831678

    But how can we apply it to RadWindow?


  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4616 posts

    Posted 16 Aug 2011 Link to this post

    Hello Archana,

    The scenario described in this link is related to the built-in browser dialogs and explains the case where a new system process is started for the new browser window. The RadWIndow, however, is actually a server control, thus it "lives" in the ASPX page only, i.e. it is limited to its own browser window/tab and cannot run another process.

      What I can advise at this point is that you either discover some way of checking for session integrity (or simply extend the session by using simple callbacks through a large enough interval to keep the session alive) in different pages loaded in iframes (as this is actually what the RadWindow is), or use regular browser windows/dialogs if you can work around your issue with them.


    Best wishes,
    Marin
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top