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

Passing session variables

2 Answers 186 Views
Window
This is a migrated thread and some comments may be shown as answers.
L
Top achievements
Rank 1
L asked on 09 Dec 2009, 07:57 AM
hi

How do i pass session variables in code behind with radwindows:

RadAjaxManager1.ResponseScripts.Add("openRadWindow('Session("consultationid")')")

I am not able to get it right? thanks

 

2 Answers, 1 is accepted

Sort by
0
L
Top achievements
Rank 1
answered on 09 Dec 2009, 08:53 AM
hi

Ok, i manage to solve the above problem. And now, how do redirect after close? Thanks

 function GetRadWindow()
        {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
       
        function closeWin()
            {
            var oWnd = GetRadWindow();
            oWnd.close();
            window.location.href = 'http://localhost/demo/default.aspx';
            }
  
0
L
Top achievements
Rank 1
answered on 09 Dec 2009, 09:01 AM
hi

Ok, solved it. should have use top.location.href instead of window.location.href

Thanks
Tags
Window
Asked by
L
Top achievements
Rank 1
Answers by
L
Top achievements
Rank 1
Share this question
or