Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing ASP variables to frames

Status
Not open for further replies.

NikP

Programmer
Mar 1, 2001
18
GB
Hi guys, I was wondering if anyone could tell me how I can pass a value from a form into another page which has frames..etc to a particular frame... i have tried using the target"_framename" option and cant get it to work..
my action attribute for the form is as follows...

<form method=post action=&quot;../DD/searchdesc.asp&quot; target=&quot;_top&quot;>

where searchdesc.asp is a frameset...

thanks for any suggestions

nik
 
According to you should be able to submit forms to another frame.

Maybe you shouldn't name your frame with a _ in the beginning?

If the form is posted to a whole new set of frames then I guess the page with the frameset will have to handle it.
It could read the post and then pass it as a querystring to the frame.

Something like:

<FRAMESET COLS=&quot;40%,*&quot;>
<FRAME NAME=&quot;Menu&quot; SRC=&quot;nav.html&quot; TITLE=&quot;Menu&quot;>
<FRAME NAME=&quot;Content&quot;
SRC=&quot;main.html?value=<%=Request.Form(&quot;postedvalue&quot;)%>
&quot; TITLE=&quot;Content&quot;>
</FRAMESET>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top