Frameset and QueryString problem

G

Guest

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_Header.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_Header and WorkObject_Body) referenced in
the FrameSet tag.

How can I do this? Any feedback is apreciated. Thanks.
 
G

Guest

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?
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top