Good afternoon,
I have a little problem and I can not find solution for the same.
I'm using a modal window through the "window.radopen", so that when the session expires and the window is still open, if the user triggers an event in it, it is redirected to the login page.
I'd like to do a check that if the session has expired if, out instead of redirecting to the login page, I would like to fire a command to close it.
Well I tried to do this on page load the modal window:
I have a little problem and I can not find solution for the same.
I'm using a modal window through the "window.radopen", so that when the session expires and the window is still open, if the user triggers an event in it, it is redirected to the login page.
I'd like to do a check that if the session has expired if, out instead of redirecting to the login page, I would like to fire a command to close it.
Well I tried to do this on page load the modal window:
function GetRadWindow() { var oWindow = null; if(window.radWindow) oWindow = window.radWindow; else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; return oWindow;}function Close(){ GetRadWindow().close();}Protected Sub Page_Load(ByVal sender as Object, ByVal e As System.EventArgs) Handles Me.load If User.Identity.IsAuthenticated = true Then '(...) Else RadScriptManager.RegisterClientScriptBlock(Me, [GetType()], "mykey", "Close();", True) EndEnd sub