Simple Frame navigation

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

Guest

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.
 
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.
 
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 said:
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.
 
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.
 
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:[email protected]?subject=Cor 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
 
Back
Top