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

How to get querystring parameters from an ASPx page into a frame?

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?
I can not do simply a request ("parameter") in my PageC.aspx, because i

can not access the post (because is from PageA to PageB)
I need to be able to access the parameter in my "parent frame"..is that

possible
Any help would be apreciated
Thanks
Alberto

Mar 10 '06 #1
1 7451
Gordowey wrote:
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?
I can not do simply a request ("parameter") in my PageC.aspx, because i

can not access the post (because is from PageA to PageB)
I need to be able to access the parameter in my "parent frame"..is that

possible
Any help would be apreciated
Thanks
Alberto

change the "PageB.htm" to a Dotnet aspx.

In your project, create a new webform in normal.
Then, change the content of the webform from a form to a frame format,

e.g.
-----------------------------------------------------------------
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebForm1" %>
<html>
<head>
<title>WebForm1</title>
</head>
<frameset rows="*,*">
<%=GetFrame1()%>
<%=GetFrame2()%>
</frameset>
</html>
------------------------------------------------------------------

The functions "GetFrame1()" and "GetFrame2()" are the WebForm class
public functions.

Their defintions are

public string GetFrame1();
public string GetFrame2();
They should return the correct url to point to the suitable frame page
links.

Of cause, the links can include the paramaters you want.
e.g.

"http://machine/frame1.aspx?param=abcde"
....
The webForm class of the Frame page can receive parameters as normal and
then use the parameters in the "GetFrame1().." to return the suitable link.

--
Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk
jacky@compose_DOT_com_DOT_hk
Mar 11 '06 #2

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

Similar topics

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: 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...
2
by: Donald | last post by:
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...
2
by: Jim via DotNetMonster.com | last post by:
Hi, I'm passing a variable to another page through a querystring. I then want to use that variable to retrieve records from a database to poulate a dropdownlist. I can read the variable from the...
3
by: Nobody | last post by:
Hi -- I'm developing an ASP.NET application in VS.NET and I want the startup page to read in some parameters from a querystring. But I can't figure out where to set the querystring. I thought it...
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...
5
by: Nirmal Singh | last post by:
I am a newbie trying to learn ASP.net 2.0. I want to retrieve the QueryString and process it to produce some parameters. I then want to redirect the user to another page, passing these...
0
by: mohaaron | last post by:
Hello all, I'm having a problem using the ReturnUrl parameter while using FormsAuthentication. If I already have some querystring parameters in the url like this. ...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.