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!

ASP-HTML Frames Query

Status
Not open for further replies.

NikP

Programmer
Mar 1, 2001
18
GB
Hi, Can anyone tell me how I can pass variables to a frame from a frame...
I have a page with a frame called main.asp and wish to pass a variable from here to another frame- which is in another frameset ...Rquest.QueuryString doesnt work for this!

Any ideas ..thanks

NEW 2 ASP
Nik
 
I am doing just that and request.querystring is working fine, can you send me the invoking code to: nj5j@yahoo.com and I will take a look.
 
Nik -
how could it not work?

let's say you're throwing something into a frame called frame2.

using <a href=&quot;thisPage.asp?param1=thisvalue&quot;>click me</a>

in thisPage.asp somewhere you should have
Request.queryString(&quot;param1&quot;) and you'll pull out the value, in this case the value is thisvalue.

Conversely, if you were using a form, use Request.Form(&quot;param1&quot;) hope that helps. If it doesn't work, try loading up your framed page by itself. eg: in the URL bar you would type in &quot;thisPage.asp?param1=thisvalue&quot; (using my example still). If you don't see the value then, then something is wrong with your script.

good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top