473,698 Members | 2,432 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Frameset and QueryString problem

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.

Nov 18 '05 #1
2 2027
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.

Nov 18 '05 #2

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.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3534
by: Hans | last post by:
Hi There, I have a page that has links with some variables and I need to open the results set in a frameset. I have tried doing this in various different ways, but still cannot get the variable passed to the relevant frames within the frameset. What is the best way of getting this done. Thanks Hans
2
5091
by: luu duong | last post by:
I know this is probably easy but here is the details. I have an asp page that is not inside a frameset. I want to post data to another asp page that is inside a frameset. So firstpage.asp has action="response.htm" target="results". response.htm... <HTML> <FRAMESET ROWS="50%,50%"> <FRAME SRC="header.asp" NAME="fTop"> <FRAME SRC="another.asp" NAME="results">
1
2332
by: Cantekin Guneser | last post by:
i have web application with frameset, i need to read querystring of a frame from other frame in the frameset thnks
2
2285
by: TR | last post by:
Given the following frameset named MyFrameSet.htm: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> <html> <head><TITLE>LaunchFrame</TITLE> <FRAMESET ROWS="88%,12%"> <FRAME id='frame1' name='frame1' SRC="placeholder.htm" > <FRAME id='frame2' name='frame2' SRC="Game.aspx"> </FRAMESET> </head>
6
6666
by: Stefan Mueller | last post by:
After my web page has been loaded I'm doing some tests with a JavaScript. If I figure out that something is wrong I'd like to reload the whole frameset. With Internet Explorer and Mozilla Firefox I can reload the whole frameset with parent.location.href = "index.html"; However, this doesn't work with Opera. Does someone know how to do that with Opera?
2
1705
by: Mark | last post by:
Hello. I am working on a common problem. . .restoring frameset context when a user links directly to a page. Loading the frameset isn't a problem. . .there are numerous examples of simple Javascript procedures that will do it, like this: if (top.location.href.indexOf("../index.html") == -1) top.location.href = "../index.html";
3
2187
by: Kevin Attard | last post by:
Hi, First of all, I know that frames are evil but I had to use them in this app. I have a frameset with 2 frames (msdn-like environment). The frameset page has a querystring and I need to get that value from the leftframe. Any ideas? Thanks
1
3333
by: news-server.maine.rr.com | last post by:
Hi, In a nutshell, how to pass query string parameters to a frameset page and extract them using Request and then pass them to a frame src ? I have the following situation, and this may be a FAQ but I have not found the answer: A list of accounts on one aspx page like this:
12
5616
by: Geoff Cox | last post by:
Hello I'm having a problem loading a frameset file using an include in a php file. Nothing is displayed and when I look at the source code I see that <html> <head> <title></title>
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9166
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4621
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2333
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.