By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,404 Members | 1,937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,404 IT Pros & Developers. It's quick & easy.

Simple Frame navigation

P: n/a
In a two frameset split horizontally. How do I have a button in one frame (the menu frame) request the (details) frame to display itself with parameters. I.e in the top frame various options are selected and a button is then clicked. I then want the details frame to display the results using the parameters from the menu frame.
Jul 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Cor
Hi Timothy

Is this a webform (while in dotnet in my opinion a frameset is not
standard) and therefore this looks form me more a JavaScript question than a
general dotNet question.

I can say look in the newsgroup dotnet.languages.Jscript, but I think that
is a dead newsgroup, so maybe you find an answer in the newsgroup.

public.dotnet.framework.aspnet which is an active newsgroup.

I hope this helps?

Cor
In a two frameset split horizontally. How do I have a button in one frame

(the menu frame) request the (details) frame to display itself with
parameters. I.e in the top frame various options are selected and a button
is then clicked. I then want the details frame to display the results using
the parameters from the menu frame.
Jul 21 '05 #2

P: n/a
If the bottom frame name is frame_bottom then from the top frame button
event call...

top.frame_bottom.document.href = "PageBottom?Item1=val1&Item2=val2

let me know if this works for you, if not i can send some samples.

you can also change the target and action in your form for the top frame to
point to the bottom frame and use request.form.

formtop.target = "frame_bottom"
formtop.action = "bottomform.aspx"
formtop.submit()

"Timothy Elvidge" <ti*@plum.co.nz> wrote in message
news:BD**********************************@microsof t.com...
In a two frameset split horizontally. How do I have a button in one frame

(the menu frame) request the (details) frame to display itself with
parameters. I.e in the top frame various options are selected and a button
is then clicked. I then want the details frame to display the results using
the parameters from the menu frame.
Jul 21 '05 #3

P: n/a
Thanks for the assistance. It looks like your solution is javascript run
on the client side. Is this the only way to do it? Or is there some
syntax in ASP.NET simliar to Response.Redirect() that I can use in the
OnClick Event fired for the top pages button. Could you please send me a
sample of how to do this.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #4

P: n/a
Cor
Hi Timothy

Have a look of one of those samples will help you

\\\needs a button on a webpage
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Me.Button1.Text = "Send Mail"
Me.Button1.Attributes("onClick") = _
"window.location='mailto:no*@non.com?subject=C or demo&body=I hope this
helps?';"
End If
End Sub
///
\\\
Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///

There are more "Register" methods. Have a look for that to the "Page"
members

I hope this helps a little bit?

Cor
Jul 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.