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.
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.