472,782 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 software developers and data experts.

help with frames

I'm sure this is something simple that I'm missing, but here's my problem.

I have two frames.
<frameset>
<frame name="rtop" src="something1.aspx">
<frame name="rbottom" src="something2.aspx">
</frameset>

What I want is for "rbottom" to display a form and when the user presses the
OK button, the windows change for both frames. For "rbottom" all I have to do
is use Response.Redirect("somethingelse.aspx"). But how do I change "rtop"
first using C#?

Any help is appreciated. Thanks. pete.
Nov 23 '05 #1
2 1439
You are probably going to have to emit some client script to do this.

So for example (this is crude but hopefully you'll get the idea) before you
call Response.Redirect, you would do:

Response.Write("<script>document.frames['frameName'].src=newpage.aspx;</script>");

Cheers. Boy do I hate frames...
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"pete K" wrote:
I'm sure this is something simple that I'm missing, but here's my problem.

I have two frames.
<frameset>
<frame name="rtop" src="something1.aspx">
<frame name="rbottom" src="something2.aspx">
</frameset>

What I want is for "rbottom" to display a form and when the user presses the
OK button, the windows change for both frames. For "rbottom" all I have to do
is use Response.Redirect("somethingelse.aspx"). But how do I change "rtop"
first using C#?

Any help is appreciated. Thanks. pete.

Nov 23 '05 #2
Thanks for the help.

"Peter Bromberg [C# MVP]" wrote:
You are probably going to have to emit some client script to do this.

So for example (this is crude but hopefully you'll get the idea) before you
call Response.Redirect, you would do:

Response.Write("<script>document.frames['frameName'].src=newpage.aspx;</script>");

Cheers. Boy do I hate frames...
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"pete K" wrote:
I'm sure this is something simple that I'm missing, but here's my problem.

I have two frames.
<frameset>
<frame name="rtop" src="something1.aspx">
<frame name="rbottom" src="something2.aspx">
</frameset>

What I want is for "rbottom" to display a form and when the user presses the
OK button, the windows change for both frames. For "rbottom" all I have to do
is use Response.Redirect("somethingelse.aspx"). But how do I change "rtop"
first using C#?

Any help is appreciated. Thanks. pete.

Nov 23 '05 #3

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

Similar topics

1
by: Dave Smithz | last post by:
Hi there, I have implemented a login sequence using session variables for a PHP/MySQL DB which I took over development. I read some books and this NG and it seemed straight forward. However the...
1
by: martingerber | last post by:
Hi, I have the following script (javascript in html document): <html> <head> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <title>Standort Speichern</title>
14
by: TrvlOrm | last post by:
OK. After much playing around, I managed to get my frame page this far.. see code below. BUT...there are still errors with it, and what I would like to have happened is this: 1) On the Left...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.