473,383 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Frame & redirect\transfer

I have 2 frameset pages, Secure.aspx and unsecure.aspx.

When the user connects to the site, they are not
authenticated yet, and therefore are redirected to
Unsecure.aspx. Once the are authenticated, they need to be
redirected to Secure.aspx.

The only problem is that Secure.aspx is loaded into one of
the Unsecure.aspx frameset. What I need is to loas
Secure.aspx over Unsecure.aspx, not within.

Nowhere in my code am I setting the target frame.

Thanks
Alex
Nov 17 '05 #1
2 1314
Server code is not aware of frames, therefore you must do it with client
side code.
You could do it with some javascript such as this:
parent.location.href = 'Secure.aspx'

--
I hope this helps,
Steve C. Orr, MCSD
Coder for Hire
http://Steve.Orr.net
"Alex" <al*******@hotmail.com> wrote in message
news:06****************************@phx.gbl...
I have 2 frameset pages, Secure.aspx and unsecure.aspx.

When the user connects to the site, they are not
authenticated yet, and therefore are redirected to
Unsecure.aspx. Once the are authenticated, they need to be
redirected to Secure.aspx.

The only problem is that Secure.aspx is loaded into one of
the Unsecure.aspx frameset. What I need is to loas
Secure.aspx over Unsecure.aspx, not within.

Nowhere in my code am I setting the target frame.

Thanks
Alex

Nov 17 '05 #2
Thanks. The only problem is that I have page security in place. My logon
page is the non-secured one, and the secured page is the default page. When
the user connects to the secured page, they are not authenticated yet, so
they are re-directed to the non-secured page.

When I place the code, the server goes into aloop between the two pages...

Alex

"Vidar Petursson" <th*****@icysoft.com> wrote in message
news:OC**************@tk2msftngp13.phx.gbl...
Hi

top.location.href = "pagetogo.aspx";
or set target="_top"
http://msdn.microsoft.com/library/de...thor/dhtml/ref
erence/properties/target.asp
--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"Alex" <al*******@hotmail.com> wrote in message
news:06****************************@phx.gbl...
I have 2 frameset pages, Secure.aspx and unsecure.aspx.

When the user connects to the site, they are not
authenticated yet, and therefore are redirected to
Unsecure.aspx. Once the are authenticated, they need to be
redirected to Secure.aspx.

The only problem is that Secure.aspx is loaded into one of
the Unsecure.aspx frameset. What I need is to loas
Secure.aspx over Unsecure.aspx, not within.

Nowhere in my code am I setting the target frame.

Thanks
Alex


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Maik Wiege | last post by:
Hi! I want to show a blinking text over my derived CMDIChildWnd-class. The blinking is done by one view which is hold by my frame. I set up a timer and write text to the parent frame, which works...
5
by: Frame | last post by:
I'm looking for tutorials or articles considering HTML Frames and how to handle them with Javascript. E.g. samples how Frames can exchange information, can a Frame instruct other Frame to update...
4
by: anonymous | last post by:
Thanks your reply. The article I read is from www.hakin9.org/en/attachments/stackoverflow_en.pdf. And you're right. I don't know it very clearly. And that's why I want to understand it; for it's...
17
by: Bruno | last post by:
I have a feature that is hosted on a different domain from the primary one in a frame, and need to retain values in a cookie. example: A web page at one.com contains a frame which has a page...
11
by: Rob | last post by:
I know, I know, don't use frames. Well, I'm stuck with these frames and I'm trying to add functionality without a complete redsign. You can look at this as a nostalgic journey. Anyway, I've got...
0
by: moustikitos | last post by:
I wrote a scrolled frame for Tkinter : http://bruno.thoorens.free.fr/downloads/scrolled.py I also wrote a Tile wrapper for Python : http://bruno.thoorens.free.fr/downloads/ttk.html...
6
by: Richard Maher | last post by:
Hi, Now that I am aware that JS on a page in Frame A can directly call a function on a page in Frame B, I no longer have to continue with my frameB.location.reload() fudge in order to get some...
2
by: arungenesis | last post by:
Hello people, I'm working with HTML and Javascript. I have some problems in handling frames. I have the following questions: 1. How do I retrieve the name of a FRAME in IE & Mozilla using a...
1
by: ismailc | last post by:
Hi, I need help please! I have an hyperlink object which i want the navigateurl to open within the current form below the object. so is there a way to create a frame within the current form &...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.