Hi Donald,
Yes, session would work. But by design, I don't think it's a good solution.
Session is designed to be kept as long as the connection is not cut. It's
seems a bit unnecessary to keep the two querystring values in the session
always, which you only need once. Instead, here's one alternative that I use;
<frameset >
<frame src="<%= this.HeaderPage %>">
<frame src="<%= this.BodyPage%> ">
</frameset>
On the workobject page, define two PROTECTED string values ; HeaderPage and
BodyPage. On the Page_Load, set the values of these variables. This way, you
can dynamically set the urls. Or you can just have one variable keeping the
value that you want to put in the query string and concatenate on the frame
page.
Hope this helps,
Ethem Azun
"Donald" wrote:
I'm able to put the QueryString value into a cookie on WorkObject.ASPX and
retrieve the cookie from the Header and Body page. This is working fine. I
guess I code also put the value in the Session object too. Is this a good
way to solve the problem I stated below?
"Donald" wrote:
I'm having a problem passing QueryString values to other web pages from a
frame set. Here's the details of the problem:
1. I have three web forms: WorkObject.ASPX , WorkObject_Head er.ASPX and
WorkObject_Body .ASPX.
2. The WorkObject.ASPX web form has a FrameSet tag referencing the other
two web forms.
3. The WorkObject.ASPX receives a query string value, i.e,
WorkObject.ASPX ?ID=123
I need to pass the value of the query string (123) from WorkObject.ASPX to
the other two web forms (WorkObject_Hea der and WorkObject_Body ) referenced in
the FrameSet tag.
How can I do this? Any feedback is apreciated. Thanks.