473,320 Members | 1,948 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,320 software developers and data experts.

Redirecting a Frameset main page from the server side.

Would appreciate any solutions people could offer for this.

Basically I wan't to use a frameset with an aspx page as the contents
rather than a htm page and I'd like to be able to redirect the main page from
the code behind the contents page.

I want to do this to allow the use of asp "linkbuttons" instead of
hyperlinks so I can do a little processing before redirecting. The main
reason for this to prevent hyperlinks of pages that have been visited going
purple and instead just highlight the current page. (kinda petty I know but I
might be needing to do some more processing before redirecting in other areas
later in development so would be good to know now).

Is there a way to do this?

Thanks in anticipation.
Jul 21 '05 #1
3 2292
I'd think that there is no way to achieve what you want directly from .aspx
code, however you could do a little Javascript workaround by writting
directly onto the response stream a
<script>window.top.location="<wherever-you-want-to-go-today>";</script> ...
and thus redirecting on the client side, only now your target frame is
"top" - the main browser window :]

It's been a while since I'd written any Javascript, so the actual code above
might not be 100% accurate, but the whole idea has been tried out with
success many times in the past :D

hope this helps a bit,

Angel
O:]
"lozd" <lo**@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
Would appreciate any solutions people could offer for this.

Basically I wan't to use a frameset with an aspx page as the contents
rather than a htm page and I'd like to be able to redirect the main page from the code behind the contents page.

I want to do this to allow the use of asp "linkbuttons" instead of
hyperlinks so I can do a little processing before redirecting. The main
reason for this to prevent hyperlinks of pages that have been visited going purple and instead just highlight the current page. (kinda petty I know but I might be needing to do some more processing before redirecting in other areas later in development so would be good to know now).

Is there a way to do this?

Thanks in anticipation.

Jul 21 '05 #2
hi....

this should work for you...
in the click even for the link button just stream the javascript to the
response output.

Response.Write("<script>window.open('login.aspx',' _top');<script>");

Regds
Kannan.V

"lozd" wrote:
Would appreciate any solutions people could offer for this.

Basically I wan't to use a frameset with an aspx page as the contents
rather than a htm page and I'd like to be able to redirect the main page from
the code behind the contents page.

I want to do this to allow the use of asp "linkbuttons" instead of
hyperlinks so I can do a little processing before redirecting. The main
reason for this to prevent hyperlinks of pages that have been visited going
purple and instead just highlight the current page. (kinda petty I know but I
might be needing to do some more processing before redirecting in other areas
later in development so would be good to know now).

Is there a way to do this?

Thanks in anticipation.

Jul 21 '05 #3
Thanks a lot, (to both posters) that did the trick.

Cheers
lozd

"Kannan.V" wrote:
hi....

this should work for you...
in the click even for the link button just stream the javascript to the
response output.

Response.Write("<script>window.open('login.aspx',' _top');<script>");

Regds
Kannan.V

"lozd" wrote:
Would appreciate any solutions people could offer for this.

Basically I wan't to use a frameset with an aspx page as the contents
rather than a htm page and I'd like to be able to redirect the main page from
the code behind the contents page.

I want to do this to allow the use of asp "linkbuttons" instead of
hyperlinks so I can do a little processing before redirecting. The main
reason for this to prevent hyperlinks of pages that have been visited going
purple and instead just highlight the current page. (kinda petty I know but I
might be needing to do some more processing before redirecting in other areas
later in development so would be good to know now).

Is there a way to do this?

Thanks in anticipation.

Jul 21 '05 #4

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

Similar topics

1
by: Julius Mong | last post by:
Dear all, I have the following: <html> <head> .... </head> <frameset ...> <frame .../> <frameset name="page" rows="60,*" ...> <frame src='top.html' .../>
10
by: IntraRELY | last post by:
I am building an Intranet application and is more of an "Application" vs. a typical "Web Application" or "Web Site". Using a FRAMSET seems like it has many benefits and gives mainly the feel of...
2
by: terry | last post by:
Hi, I am using a FrameSet with three frames. In server code (c# code behind) is it possible for a page to call a function in another page of the frameset? I suspect that it is not possible but...
2
by: Serge L | last post by:
Ok, I have Main.htm page which contains: <frameset rows="20%,80%"> <frame scrolling="no" name="top" src="ONE.aspx"> <frame scrolling="yes" name="bottom" src="MAIN.aspx"> </frameset> and I have...
3
by: Goran Djuranovic | last post by:
Hi everyone, I have an ASP.NET application with NT authentication turned on. The default page is an .HTM page with the frameset in it. Frameset contains 3 frames (top, left, main), and each of...
3
by: lozd | last post by:
Would appreciate any solutions people could offer for this. Basically I wan't to use a frameset with an aspx page as the contents rather than a htm page and I'd like to be able to redirect the...
1
by: mark.martinez2 | last post by:
Here's my problem: It is necessary to have people enter in direct links to pages on my site, which is frame-based, but when they go to any page that isn't the home page, the frameset doesn't load,...
12
by: Geoff Cox | last post by:
Hello I'm having a problem loading a frameset file using an include in a php file. Nothing is displayed and when I look at the source code I see that <html> <head> <title></title>
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
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
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.