Response.Redirect within frames

Results 1 to 2 of 2

Thread: Response.Redirect within frames

  1. #1
    Join Date
    Dec 1969

    Default Response.Redirect within frames

    I&#039;m using a response.redirect to redirect to a login screen if the user is not logged in. Only problem is the page that checks this, is in a frame, while I want the login screen to be in the _parent window. Any suggestions?<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Response.Redirect within frames

    Put this code inside your login page.<BR><BR>&#060;HEAD&#062;<BR>&#060;SCRIPT LANGUAGE="JavaScript"&#062;<BR> &#060;!-- Begin<BR> if (window != top) top.location.href = location.href;<BR> // End --&#062;<BR>&#060;/SCRIPT&#062;<BR>&#060;/HEAD&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts