473,769 Members | 5,415 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Frame & redirect\transf er

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 1333
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*******@hotm ail.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*****@icysof t.com> wrote in message
news:OC******** ******@tk2msftn gp13.phx.gbl...
Hi

top.location.hr ef = "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*******@hotm ail.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
3443
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 fine. But I can't get the text away the next time the timer fires. Here is some code: void MyView::OnTimer(UINT nIDEvent) { if (nIDEvent!=1) return; showText = !showText;
5
4451
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 it's content etc. This kind of information is welcome. Cheers!
4
3626
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 useful to help me to solve some basic problem which I may not perceive before. I appreciate your help, sincerely.
17
4179
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 hosted at two.com If I view the frameset from one.com in Firefox, all works well with the content from two.com. But if trying to view this using IE (with standard security settings), the cookie set by two.com is not accessible.
11
16961
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 the following frame structure at the top level: FRAMESET CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> <html><head><title>Server List</title></head> <frameset frameborder="1" border="1" framespacing="1" rows="10%,89%">
0
1510
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 http://bruno.thoorens.free.fr/downloads/Ttk-src.zip Bruno
6
1950
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 code to run in B's context. This is fantastic news, and I'm having a ball! But before running off with all my convert's zeal and converting all my <script src="common.js"copy-books to direct parent.frame.function() calls I'd like to pause for a...
2
6150
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 onclick event handler I have done this for IE and it is as follows: this.frames.name
1
1686
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 & use it's id for the target property of the hyperlink object. please assist
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9414
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10197
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9977
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9848
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8860
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.