473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

QueryString and Frames

I have three aspx pages that are displayed to the user in a frameset. One
aspx page holds title information and displays in the top frame, the aspx
page in the left frame lists products, and the aspx page in the right frame
shows product details.

When the user first opens the ASP.NET Web application, the default page is
displayed (which is not the product catalog described above). The main
application menu contains links for various catalogs ("Widgets",
"Thingies"... and other catalogs). When the user selects one of the catalogs
from the menu, the frameset page is opened, and a QueryString value (e.g.,
?CatalogID=43) is passed in to control which catalog is displayed .

My question: Being that the QueryString variable (?CatalogID) is getting
passed to the frameset page, how do I make the value of CatalogID available
to the code-behind module of the aspx page in the left frame that lists the
products. This is the page that really needs the CatalogID value.

Thanks!
Nov 18 '05 #1
2 2825

You could get the URL params via.

Request("CatalogID"

if not , one more alternative solution is

place <input type=hidden id=myHidden value="<%=Request("CatalogID")%>" runat=server> in one of the frames which are having URL param, so in code behind access myHidden.Value
Nov 18 '05 #2
Hi David,

You can easily store the information in a cookie. That way, it is available
through code behind to any pages you want. For example:

Dim currentCatalogID As HttpCookie = New HttpCookie("catalogID")
currentCatalogID.Value="48"
currentCatalogID.Expires=#12/31/2004#
Response.Cookies.Add(currentCatalogID)

Here is a Microsoft Quickstart with various examples showing how to
maintain data across multiple aspx pages:

http://msdn.microsoft.com/library/en...plications.asp

Hope this information helps.
Jean-Luc
Microsoft .NET MVP
do*******@hotmail.com
http://www.stormpixel.com

----------------------------------------------------------------------------
---
I have three aspx pages that are displayed to the user in a frameset. One
aspx page holds title information and displays in the top frame, the aspx
page in the left frame lists products, and the aspx page in the right frame shows product details.

When the user first opens the ASP.NET Web application, the default page is
displayed (which is not the product catalog described above). The main
application menu contains links for various catalogs ("Widgets",
"Thingies"... and other catalogs). When the user selects one of the catalogs from the menu, the frameset page is opened, and a QueryString value (e.g.,
?CatalogID=43) is passed in to control which catalog is displayed .

My question: Being that the QueryString variable (?CatalogID) is getting
passed to the frameset page, how do I make the value of CatalogID available to the code-behind module of the aspx page in the left frame that lists the products. This is the page that really needs the CatalogID value.

Thanks!

Nov 18 '05 #3

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

Similar topics

2
by: KathyB | last post by:
Hi, I'm doing an asp.net app (first one) and NEED to use frames (so please don't tell me not to!). I'm loading a mainframe.htm with two aspx files (for example: left.aspx, right.asp). QUESTION:...
3
by: ooper | last post by:
Hello, I have a page with multiple frames. The body frame has an href as follows: http://www.fincalc.com/BUD_02.asp?id=12345&css=demo BUD_02.asp has code that tries to read the id value from...
0
by: Tamir Kamara | last post by:
Hi, I have two frames - one is a menu and one is the contents. After I select an item in the menu it reloads the contents frame with the appropriate link with a ?menu=selection ending. how can...
2
by: David Krussow | last post by:
I have three aspx pages that are displayed to the user in a frameset. One aspx page holds title information and displays in the top frame, the aspx page in the left frame lists products, and the...
2
by: Amadelle | last post by:
Hi all, I have multiple frames which I would like to get the query string from within one of the subframes. But when I do HttpContext.Current.Request.QueryString or Request.QueryString ...
1
by: paleHail | last post by:
Hi all, I have my index.html where I have two frames: <frameset rows="144,*" border="0" frameborder="no"> <frame src="header.html" frameborder="no" noresize scrolling="no"> <frame...
3
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...
11
by: Fabio | last post by:
I know the syntax for variable "variabletopass" in ASP: www.destinationpage.asp?variable=<%=variabletopass%> What's the syntax for Javascript? Thks
5
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello to all, I have a page ASPX that calls to another one. It does window.open to another URL, and I want to hide the URL because the user not must see the querystring by security subjects. ...
3
by: pingsheng | last post by:
Dear all, I have a form with dynamically created input fields. These fields go to next page for submitting into SQL database. The thing is all fields are the same but 4 fields. So each record...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.