help with frames

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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...
 
Thanks for the help.

Peter Bromberg said:
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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top