Solved

on session expire in iframe - open login page in parent window

Posted on 2010-08-17
2
945 Views
Last Modified: 2012-06-27

hi there,

how do i open the login page in parent window on session expires in iframe.

I use vb. net and asp.net 3.5

Thanks
Nitesha
0
Comment
Question by:Redshelf
2 Comments
 
LVL 10

Expert Comment

by:Jini Jose
ID: 33453775
if your iframe source is test.aspx, then in the page load, you can check the session and if it expires you can do the below.
            Page.RegisterStartupScript("ToLogin","<script language='javascript'>window.parent.location.href=\"http://localhost:2672/ShowPage.aspx?Id=9\";</script>");

Open in new window

0
 

Accepted Solution

by:
Redshelf earned 0 total points
ID: 33455777
hi

above solution did not work for me.

i have copied the followinbg code in my login page and it worked.

<SCRIPT LANGUAGE=JavaScript>
<!--
  if (top.frames.length!=0)
   top.location=self.document.location;
// -->
</SCRIPT>


0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question