Solved

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

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now