Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


how to redirect to login page?

Posted on 2007-08-07
Medium Priority
Last Modified: 2013-11-05
Hi Expert,

When I have a page with 3 IFrames how can I redirect to the login page from within one of the frames?

i can't do:
As I am inside one of 3 frames so only the frames I'm in will get redirected and the other two frames will still be displayed on the screen

Question by:kateL
  • 2
  • 2
LVL 53

Expert Comment

ID: 19651868
The only possible workaround is the usage of JavaScript. Simply register a client-side script doing the desired redirect by using window.open or <parentframe>.location.href. Or use targets in your forms.


LVL 53

Accepted Solution

Dhaest earned 200 total points
ID: 19651871

Author Comment

ID: 19651947
will just redirect "FrameName" to "PageName.aspx". The 3 frames are still displyed on screen with one of them being the login page.

I am now trying something like:
parent.window.close() //Which successfully closes the window containing the 3 IFrames(but asks me if I want to close it(that's bad!!))
window.open('Logon.aspx'); //Which does not work!

Any more suggestions anyone?

Author Comment

ID: 19659265
ah easy i got it with:
parent.window.location.href = 'Logon.aspx';

or i should say:
Page.ClientScript.RegisterStartupScript(this.GetType(), this.UniqueID, "parent.window.location.href = 'Logon.aspx';", true);

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

564 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