473,657 Members | 2,351 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Redirect in a another frame

All,

How can we redirect to another frame from the C# code? I usually use
Response.Redire ct("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 2380
This needs to be done with client side JavaScript.
You'll need to execute some code similar to this:

FrameName.docum ent.location='w hatever.aspx';

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


"Just D." <no@spam.please > wrote in message
news:lQG5e.3498 7$lz2.24876@fed 1read07...
All,

How can we redirect to another frame from the C# code? I usually use
Response.Redire ct("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
3934
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. Regards Lamine
1
2023
by: Jackson | last post by:
Anyone now how to redirect my asp page, from a _top frame to the _parent frame?
1
2674
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 dynamic text from dropdownlist and textbox, i tried like response.redirect("search.aspx?city="+ddl_city.selectedtext) but with this i can not redirect the main frame it redirects left frame again. i want to manupulate main frame from left frame with...
5
3560
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) Response.Redirect("http://webserver/policies/pppindex.htm target=_blank") End Sub Of course, this will not work. Is there some way I can get a similar result
2
5992
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 ASPX-Seite geöffnet werden, und zwar in einem der beiden anderen Frames. Mein Problem ist, dass die Seite, die geöffnet werden soll, manchmal im 2. und manchmal im 3. Frame angezeigt werden soll (je nach Benutzeraktivität).
3
2332
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 the client side" according to a lot of answers. The only answers that have some code did not seem to work with my code? I have a login page (with no frame) and when the program accepts the login the page is redirected to a page with 3 frames....
3
2614
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: if(!this.Context.User.Identity.IsAuthenticated) { Response.Redirect("Login.aspx",true); } The problem is that if I go to the parent page directly, I get four versions
3
5626
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
6138
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 MyGui(gui.MyFrame): #gui.MyFrame generated by wxGlade def __init__(self, *args, **kwds): gui.MyFrame.__init__(self, *args, **kwds) # ... code removed ...
0
8399
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
8827
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
8504
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
8606
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
7337
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...
1
6169
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
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();...
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.