473,321 Members | 1,778 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,321 software developers and data experts.

Passing querystring parameters to Frameset -- How?

Hi,

In a nutshell, how to pass query string parameters to a frameset page and
extract them using Request["param_name"] 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:

User A href="my_frameset.aspx?account_id=<%= iAccountId %>" ... which
repeats for an arrayList of accounts, generating a unique URL for each a
href link
On the Frameset page (my_frameset.aspx):

<frameset rows="25%,75%" id="AccountMemberFrameset"
name="AccountMemberFrameset" runat="server" >

<% int iAccountId = Convert.ToInt32(Request["account_id"]); %>

<frame runat="server" id="account_member_filter_frame"
name="account_member_filter_frame"
src="AccountMembersFilterFrame.aspx?account_id=<%= iAccountId%>" />

<frame runat="server" id="account_member_frame" name="account_member_frame"
src="AccountMembers.aspx" />

</frameset>

</html>

Now... when I call Request["account_id"] from the
AccountMembersFilterFrame.aspx the value I get back is "<%=iAccountId%>"
which indicates the frameset page is not "resolving" the value of
<%=iAccountId%>

Thanks for any tips.

Frank
Feb 6 '07 #1
1 3322
<frameset rows="25%,75%" id="AccountMemberFrameset"
name="AccountMemberFrameset" runat="server" >

<% int iAccountId = Convert.ToInt32(Request["account_id"]); %>

<frame runat="server" id="account_member_filter_frame"
name="account_member_filter_frame"
src="AccountMembersFilterFrame.aspx?account_id=<%= iAccountId%>" />

<frame runat="server" id="account_member_frame"
name="account_member_frame" src="AccountMembers.aspx" />

</frameset>

</html>

Hi,

I figured it out -- tje solution was to remove the runat=server from each
frame and just have runat=server in the frameset tag.
I also changed the frameset id so it wouldn't conflict with the class name
(I don't know if that matters, but why guess?)
I also changed the DTD type to HTML 4.0 instead of the XHTML Transitional (I
think strict) which doesn't know what frames are.

thx,
Frank
Feb 6 '07 #2

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

Similar topics

11
by: Dthmtlgod | last post by:
I am having a little difficulty in passing a value from a page to another page. I am going to provide excerpts from the code. I think I am close. This is from Page1.ASP <% Set Conn =...
3
by: Joe Bloggs | last post by:
Does anyone know if its possible to pass parameters or the values of Request.QueryString from a web page to a custom control class? I'm using a C# Web Application. For Example I have Web Page1...
4
by: David Freeman | last post by:
Hi There! I'm just wondering if there's a way to pass parameters (as if you were passing parameters to a ASCX web control) when calling an ASPX page? e.g. MyDetailsPage.UserName = "david" ...
1
by: Paul D. Fox | last post by:
I'm trying to launch a Child Window from a hyperlink on a Datagrid and have it recieve multiple values from the Parent Window. Upon recieving the values in the Child Window, I need to access them...
1
by: Adeel Ahmad | last post by:
Hi, The subject sounds confusing but here is what i want to do. I have a button on my page which says...
1
by: Gordowey | last post by:
Hi all, I have the next scenario? "PageA.html" post parameters to "PageB.html" (<= This page is a frame that contains PageC.aspx) I need to get that post (from PageA.html) in my...
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...
2
by: HHAAPPYY | last post by:
Hi I am trying to pass value of the textbox along with another value to the query string. when i am retriving the txtbox value it always shows me null, my senario is like this On my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.