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 dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using querystring with frameset

Status
Not open for further replies.

sodakotahusker

Programmer
Mar 15, 2001
601
It appears that the querystring never gets to my page (which is in one of the frames). I tried to include the querystring in my src statement for the frame but that does not work either. How can I get that querystring value to my page?
 
so when you right click inside the frame and choose properties there is no query string?
 
I presume you're using something like this:
Code:
parent.aspx:
<frameset>
	<frame src="page1.aspx?p1=<%#val1%>">
	<frame src="page2.aspx?p2=<%#val2%>">
</frameset>
and in page1.aspx the Request.QueryString["p1"] returns a blank string (and the same issue with p2 on page2.aspx).
If so, make sure that in the parent.aspx page, under the Page_Load event, you make a Page.DataBind() call.

[morning]
 
By #val1 I assume you mean request.querystring value?

What is up with the <%# vs <%= ??? Is there a difference in the way those behave? I am still using = cause I could not find a sample using the # and I could not remember the syntax - and it worked so I left it.

I will try the page binding. Thanks.
 
My code?
you mean the <%# thing?

<div id="test"><%="This is my querystring" & request.querystring("whatever")%></div>

If that is not the code you are talking about - I am lost!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top