Solved

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

Posted on 2010-08-17
2
934 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

790 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