Forum Moderators: open

Message Too Old, No Replies

Frames and QueryString - ASP Question

Retrieve QueryString data in a frames page

         

Sandi_W

5:15 pm on Apr 24, 2002 (gmt 0)



I know that this isn't the place to ask for ASP help, but I was wondering if anyone knows how to retrieve QueryString data in a frames page.

jatar_k

5:20 pm on Apr 24, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



yes, you would probably get better response in server side scripting

a little clarification would help. Are you trying to get a query string from the actual location bar and then pass it into the frame?

Sandi_W

5:56 pm on Apr 24, 2002 (gmt 0)



Yes. It is quite easy in a regular page by looking at <% Request.QueryString %>, but it doesn't seem to be available from a frames page. I am not able to see the data.

Lisa

6:01 pm on Apr 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your framing page will need to pass the information along to the framed page. That is the way I do it.

Sandi_W

6:12 pm on Apr 24, 2002 (gmt 0)



I'm not sure I understand. I do the Request.QueryString in the 'frameset' page, then somehow pass it to the individual frame? How do I do that?

joshie76

6:15 pm on Apr 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



an example of one approach - on your frame page

<frameset ...> 
<frame src="page.asp?<%=Request.QueryString%>" ...>
...
</frameset>

I've stripped the HTML out to keep it simple but you should get the idea.

This way, when the browser requests each page for your frames it'll send up the QueryString to the server.

Sandi_W

6:23 pm on Apr 24, 2002 (gmt 0)



Thank you! Thank you! Thank you!