473,325 Members | 2,785 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,325 software developers and data experts.

To pass a parameter from an URL to a page with frames

Hi,

A newbie-question:

I would like to send in a parameter with the starting link.

I suppose I can do this with: 'http://www.mySite.com?param=xxx'.
But I cannot figure out how to read that param-value.
Putting '?param=xxx' after the websiteName does not indicate exactly which page
is receiving the parameter.

My first page (default.asp) has two frames.
So there is html code in the Frameset, and in the two pages (LeftPage and
Rightpage) in the frames (LeftFrame and RightFrame).
I have tried to put in
<%
Dim wParam
wParam = Request.Querystring("param")
Response.Write "param=" & wParam<br>"
'---
%>
in ASP code in all three places but don't seem to be able to read the param
value placed in the starting URL.

I would like to use the param value in the RightPage.

What am I doing wrong?

thanks in advance
Larry

Jul 22 '05 #1
4 8334
LarryM wrote on 19 mrt 2005 in microsoft.public.inetserver.asp.general:
Hi,

A newbie-question:

I would like to send in a parameter with the starting link.

I suppose I can do this with: 'http://www.mySite.com?param=xxx'.
But I cannot figure out how to read that param-value.
Putting '?param=xxx' after the websiteName does not indicate exactly
which page is receiving the parameter.

My first page (default.asp) has two frames.
So there is html code in the Frameset, and in the two pages (LeftPage
and Rightpage) in the frames (LeftFrame and RightFrame).
I have tried to put in
<%
Dim wParam
wParam = Request.Querystring("param")
Response.Write "param=" & wParam<br>"
'---
%>


the frameset page does not show html text, so Response.Write does not
have the effect you want.

However the frameset default.asp could send
the Request.Querystring("param") to the left.asp using querystring

frame src="left.asp?param="<%=Request.Querystring("param ")%>

or using a session variable

<%
session("myparam") = Request.Querystring("param")
%>

However, preferably do not use frames, they are evil, and [if you are up
to the level of programming in asp] you can create the window as one page
possibly with includes.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #2
On 19 Mar 2005 16:03:26 GMT, "Evertjan." <ex**************@interxnl.net> wrote:
LarryM wrote on 19 mrt 2005 in microsoft.public.inetserver.asp.general:
Hi,

A newbie-question:

I would like to send in a parameter with the starting link.

I suppose I can do this with: 'http://www.mySite.com?param=xxx'.
But I cannot figure out how to read that param-value.
Putting '?param=xxx' after the websiteName does not indicate exactly
which page is receiving the parameter.

My first page (default.asp) has two frames.
So there is html code in the Frameset, and in the two pages (LeftPage
and Rightpage) in the frames (LeftFrame and RightFrame).
I have tried to put in
<%
Dim wParam
wParam = Request.Querystring("param")
Response.Write "param=" & wParam<br>"
'---
%>


the frameset page does not show html text, so Response.Write does not
have the effect you want.

However the frameset default.asp could send
the Request.Querystring("param") to the left.asp using querystring

frame src="left.asp?param="<%=Request.Querystring("param ")%>"

(I think I completed the last line correctly)

I am puzzled because the left.asp does not seem to receive 'param'.

In left.asp I have
<%
Dim wParam
wParam = Request.Querystring("param")
Response.Write "param=" & wParam
%>

Out on left.asp comes only 'param=' .

But, if I get you right - the param in 'http://mywebSite?param=xxx'
IS being caught by the Frameset, and could be sent on to 'left.asp'.
But, well, it does not happen for me...yet.
regards
Larry

Jul 22 '05 #3
...and now it works!
some typo error from my side.
thanks
Larry
Jul 22 '05 #4
LarryM wrote on 19 mrt 2005 in microsoft.public.inetserver.asp.general:
frame src="left.asp?param="<%=Request.Querystring("param ")%>"

(I think I completed the last line correctly)


<frame src="left.asp?param=<%=Request.Querystring("param" )%>">

[one doublequote less]

Remember that ASP serverside processing doesn't even know what a frame is.

Why not try the session variable solution,
or even better, no frames at all?

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #5

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

Similar topics

7
by: M-a-S | last post by:
I'd like to parametrize a module. That is, to set and pass some values into the module, while it is being imported. I tried this: # sub_1.py -- main program extern = "OK" import sub_2 print...
3
by: Doru Roman | last post by:
Hi, I have a page that calls a multiple frames page (ASP). I need to send parameters from the first to the multi frames page. If sending to a simple page, it works. If sending to multiple frames...
3
by: DCB | last post by:
Hello. I have an easy question, likely, that has me in a headspin. I have an include file to a frames based site that basically forces frames on the end user if they visit the site and hit a...
3
by: Chris | last post by:
I have a modal (yes it must be modal) web page. I do this by having an empty frame that points to my main page (so that I can repost without new popups) I have to pass data to the child page from...
1
by: sus | last post by:
hi i have a login page thru which i get a homepage which consists of 3 frames top,left,side frames which are all .aspx file no all 3 frames get loaded,any 2 frames gets loaded and in the 3rd frame...
1
by: i_dvlp | last post by:
I'd like to pass a dynamic parameter or argument to a frameset, and use it as a param for the src also. I could use php to do this, but can't think of another way. I know there are JS methods ...
2
by: bbsbob | last post by:
Hello, I'm still using the Framework v1.1. Forgive me, I'm working on a legacy application. I'm using 2 iFrame sections with 2 aspx pages, i.e. 1.aspx (left) and 2.aspx (right) In 1.appx page,...
0
by: Venkata Rama | last post by:
Pass data to frames main page from popup window through hidden fileds and frames main page should get refrshed .Please give example . Regards Rama Venkata Enike
2
by: simon | last post by:
Hello, relatively new .net programmer. using vb.net (v2.0) I have an aspx page that contains 2 user controls (ascx) on it. the left control is basically navigation hyperlinks the right control...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: 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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.