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

Redirecting from another frame

Hello,

How do I programatically redirect a page in "another frame" using C# in
ASP.NET?

Server.Transfer redirects the current page...not a different frame.

Thanks.
Nov 18 '05 #1
1 1841
Hi Bilbo,

You can do it by using the Page.RegisterStartupScript method.

<pseudo-code>
int frameIndex = 1;
string newPage = "newPage.aspx";
string script = string.Format("<script
language=\"javascript\">parent.frames[{0}].location.href = '{1}';</script>",
frameIndex, newPage);

Page.RegisterStartupScript("ReloadFrame", script);
</pseudo-code>

HTH,

Kyril

-----Original Message-----
From: Bilbo [mailto:Bi***@cox.net]
Posted At: Wednesday, July 14, 2004 10:54 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Redirecting from another frame
Subject: Redirecting from another frame

Hello,

How do I programatically redirect a page in "another frame" using C# in
ASP.NET?

Server.Transfer redirects the current page...not a different frame.

Thanks.
Nov 18 '05 #2

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

Similar topics

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...
2
by: Magesh | last post by:
Hi, I am trying to do the following 1. On form submit, open a window with three frames 2. Set the target as one of the frames 3. Set the action for the frame It is working properly in...
4
by: Don | last post by:
Is there some way to redirect the "main" frame to another URL from within the "header" frame? Thanks, Don ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----...
3
by: Cantekin Guneser | last post by:
in my project i ahave frame sets i want to main frame to direct a url with query string when press a button that is at left frame vit java script code thanks in advance for ayn hepl or idea
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...
5
by: Etienne Charland | last post by:
Hi, I have a simple problem that doesn't seem to have an easy solution. I have a popup used in many places in the application. At the top of the page, there is a link to switch between two views of...
9
by: Fuzzyman | last post by:
Hello, I'm trying to redirect standard out in a single namespace. I can replace sys.stdout with a custom object - but that affects all namespaces. There will be code running simultaneously...
0
by: TNRBala | last post by:
I'm using ASP.NET to build the Web Application, In my project, I'm having Login page, having no frames. I'm entering the user name & password, and am redirected to next page, that page contains three...
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.