473,564 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Queryst ring("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 8366
LarryM wrote on 19 mrt 2005 in microsoft.publi c.inetserver.as p.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.Queryst ring("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.Queryst ring("param") to the left.asp using querystring

frame src="left.asp?p aram="<%=Reques t.Querystring(" param")%>

or using a session variable

<%
session("mypara m") = Request.Queryst ring("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.publi c.inetserver.as p.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.Queryst ring("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.Queryst ring("param") to the left.asp using querystring

frame src="left.asp?p aram="<%=Reques t.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.Queryst ring("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.publi c.inetserver.as p.general:
frame src="left.asp?p aram="<%=Reques t.Querystring(" param")%>"

(I think I completed the last line correctly)


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

[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
18389
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 sub_2.noway # prints 'no extern' :-( # EOF
3
2442
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 page, it does not. -- Thank you,
3
32132
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 non-frames created page... Simply, it is: if (parent != self)
3
1610
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 the parent and the only way I can figure to do it by the url. Please correct me if I'm wrong on that. When the data get to my frame I then have...
1
1963
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 i get a message called"Parameter is incorrect" if i refresh the page then i get to see the 3rf frame also.i.e refreshing the page solves the problem...
1
1811
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 getArgs() that can be used with GET requests. Maybe (for Left Hand Col) I could use something like and this would take precedence over whatever...
2
3337
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, I have a treeview control, I'd like to pass a selected node string to 2.aspx page and then to display some contents with passed node string. How...
0
1141
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
3498
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 is basically content display depending on what was clicked in the left control. ** trying it this way to avoid using frames ** I was hoping to...
0
7583
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...
0
7888
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. ...
0
8106
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...
0
7950
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...
0
6255
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...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
924
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...

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.