Frames...

R

Rob R. Ainscough

I have the following:

Form1.aspx contains frameset (2 frames = 'left' and 'right')
'left' frame src = Form2.aspx
'right' frame src = ""

What I'm trying to accomplish:

In Form2.aspx I have a WebForms button called "Search". I want to be able
to click on this button and have a result search displayed in my 'right'
frame (contained in Form1.aspx). Is this possible?

I've tried using in my bn_Search_Click event:

Dim SearchLocation As String
Dim FrameLocation As String = "<script
language='javascript'>window.right.location="

' Display the Site search results in this "right" frame of
Form1.aspx

SearchLocation = "http://www.somesite.com/cgi-bin/vic.pl?csz=" &
tb_SearchUserInput.Text & "&Go=Go" & "</Script>"
Page.RegisterClientScriptBlock("Redirect", FrameLocation &
SearchLocation)

This code is being executed in Form2.aspx but does nothing? Is the problem
"window.right.location"?

Thanks, Rob.
 

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

Members online

Forum statistics

Threads
474,262
Messages
2,571,043
Members
48,769
Latest member
Clifft

Latest Threads

Top