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

Redirect in a another frame

All,

How can we redirect to another frame from the C# code? I usually use
Response.Redirect("TargetPage.aspx") to redirect inside the current frame,
but I don't know really how can I change the frame and open a required page
in another frame to leave the active frame in its current condition and
continue working in the second frame? Is it possible at all from the C#
code? Or we need to write a JAVA script and call it from C# code?

Thanks.
Dmitri.
Nov 19 '05 #1
1 2358
This needs to be done with client side JavaScript.
You'll need to execute some code similar to this:

FrameName.document.location='whatever.aspx';

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Just D." <no@spam.please> wrote in message
news:lQG5e.34987$lz2.24876@fed1read07...
All,

How can we redirect to another frame from the C# code? I usually use
Response.Redirect("TargetPage.aspx") to redirect inside the current frame,
but I don't know really how can I change the frame and open a required
page in another frame to leave the active frame in its current condition
and continue working in the second frame? Is it possible at all from the
C# code? Or we need to write a JAVA script and call it from C# code?

Thanks.
Dmitri.

Nov 19 '05 #2

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

Similar topics

2
by: Lamine Darbouche | last post by:
Please help? I have my application with four frames and would like to redirect from one frame to _parent or _top. Can I do that with "Response.redirect" or similar? Many thanks in advance....
1
by: Jackson | last post by:
Anyone now how to redirect my asp page, from a _top frame to the _parent frame?
1
by: Cantekin Guneser | last post by:
in my project i am using framesets, at the left frame set notmally i am using hiperlink element with target to redirect main frame this is ordinary, but now i need to redirect main frame with...
5
by: Jim in Arizona | last post by:
I have a site that uses frames. I made an aspx form with an asp:button control with Onclick=test. The test sub is: Sub Test(ByVal sender As Object, ByVal e As System.EventArgs) ...
2
by: news://news.microsoft.com/microsoft.public.de.germ | last post by:
Hallo! Ich habe ein Frameset mit 3 Frames. Im 1. Frame wird eine ASPX-Seite geöffnet. In dieser werden einige Steuerelemente angezeigt. Nun soll bei bestimmten Benutzeraktivitäten eine andere...
3
by: PKin via DotNetMonster.com | last post by:
Hi, I really need som help here. I have read a lot of thread about Frames ans response.redirect and I know by now that I cannot use response redirect and I have to use "some kind of javascript on...
3
by: William Sullivan | last post by:
Have a frameset HTML page (parent) with child .aspx pages. When each of the child pages loads, it checks to see if the user is authenticated, and if not, redirects to the login page: ...
3
by: Luke Xu | last post by:
In Heyperlink, you can specify the target of URL, such as _blank. But how can I specify the target in Response.Redirect? Thanks Luke
3
by: Alejandro | last post by:
Hi: I want to redirect stdout to a textctrl I have. From what I read in the wxpython documentation, I can use the wxLogTextCtrl class to do this. I am doing the following: class...
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
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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...

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.