how to redirect to login page?

Posted on 2007-08-07
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
    LVL 53

    Expert Comment

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


    LVL 53

    Accepted Solution


    Author Comment

    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!!))'Logon.aspx'); //Which does not work!

    Any more suggestions anyone?

    Author Comment

    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);

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    758 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

    11 Experts available now in Live!

    Get 1:1 Help Now