473,699 Members | 2,417 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_frames et.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.as px):

<frameset rows="25%,75%" id="AccountMemb erFrameset"
name="AccountMe mberFrameset" runat="server" >

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

<frame runat="server" id="account_mem ber_filter_fram e"
name="account_m ember_filter_fr ame"
src="AccountMem bersFilterFrame .aspx?account_i d=<%=iAccountId %>" />

<frame runat="server" id="account_mem ber_frame" name="account_m ember_frame"
src="AccountMem bers.aspx" />

</frameset>

</html>

Now... when I call Request["account_id "] from the
AccountMembersF ilterFrame.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 3333
<frameset rows="25%,75%" id="AccountMemb erFrameset"
name="AccountMe mberFrameset" runat="server" >

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

<frame runat="server" id="account_mem ber_filter_fram e"
name="account_m ember_filter_fr ame"
src="AccountMem bersFilterFrame .aspx?account_i d=<%=iAccountId %>" />

<frame runat="server" id="account_mem ber_frame"
name="account_m ember_frame" src="AccountMem bers.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
2108
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 = Server.CreateObject("ADODB.Connection") DSNtest="DRIVER={Microsoft Access Driver (*.mdb)}; " DSNtest=dsntest & "DBQ=" & Server.MapPath("ncci.mdb") Conn.Open DSNtest
3
10833
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 which has to parameters passed to it from another Web page Parameter # 1 dbid and Parameter # 2 reportid. I know that I can access the values of the parameters from the code behind .aspx.cs using Request.QueryString so
4
7155
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" OR... the only way to do it is to use the QueryString or Session object?
1
4986
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 in the code-behind so I can render a datagrid in the Child. I've tried just doing another Postback in the child's onLoad event but I get a Javascript error. Is there another way to do this? <%@ Page Language="vb" AutoEventWireup="false"...
1
11635
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 OnClick="javascript:window.open('reports\\Container.asp?pageURL=Report1.asp?intCurrentPage=1&blnRetrieveFlag=1&Show=1',TasksRPT');" Now on the Conatiner.asp what i do is if Request.QueryString("Show") = 1 then pageURL = Request.QueryString("pageURL") end if
1
7462
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 "PageC.aspx"...how can this be done?
1
2087
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 src="rightFrame.html" name="frontpage" frameborder="no" noresize> </frameset> I wanted the top of the site to stay in tact while the bottom
3
2188
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
2
2173
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 page div_admin.asp i have following things.<% Dim page, content,console,banner,navbar
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8613
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
9172
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...
0
9032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8908
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
8880
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
7745
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
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2008
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.