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

Passing parameters to a .htm page - not working

Hi all,

I had an .aspx page which would be opened modally from a previous page and
just prior to the parent opening the aspx page, a javascript would run and
pass parameters like mypage.aspx?parm1=a&parm2=b. I would then access the
parameters in my code-behind as simple request variables and everything
worked fine.

I now have to open an .htm file first and inside this htm file is an iframe
containing the previous-mentioned page. I can't seem to get access to the
two passed parameters anymore.

How can I send parameters to a .htm file from javascript in such a way so as
to access these from my code-behind on subsequent posts?

Regards
John.
Nov 18 '05 #1
2 2781
The HTM page will have to use some Javascript magic to read it's
QueryString, and pass it to the IFrame's querystring - which I presume holds
your ASPX.

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
"John" <a@b.com> wrote in message
news:uB*************@TK2MSFTNGP11.phx.gbl...
Hi all,

I had an .aspx page which would be opened modally from a previous page and
just prior to the parent opening the aspx page, a javascript would run and
pass parameters like mypage.aspx?parm1=a&parm2=b. I would then access the
parameters in my code-behind as simple request variables and everything
worked fine.

I now have to open an .htm file first and inside this htm file is an
iframe
containing the previous-mentioned page. I can't seem to get access to the
two passed parameters anymore.

How can I send parameters to a .htm file from javascript in such a way so
as
to access these from my code-behind on subsequent posts?

Regards
John.

Nov 18 '05 #2
I found just the 'magic solution you were talking about - thanks.

"Sahil Malik" <co*****************@nospam.com> wrote in message
news:#1**************@TK2MSFTNGP12.phx.gbl...
The HTM page will have to use some Javascript magic to read it's
QueryString, and pass it to the IFrame's querystring - which I presume holds your ASPX.

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
"John" <a@b.com> wrote in message
news:uB*************@TK2MSFTNGP11.phx.gbl...
Hi all,

I had an .aspx page which would be opened modally from a previous page and just prior to the parent opening the aspx page, a javascript would run and pass parameters like mypage.aspx?parm1=a&parm2=b. I would then access the parameters in my code-behind as simple request variables and everything
worked fine.

I now have to open an .htm file first and inside this htm file is an
iframe
containing the previous-mentioned page. I can't seem to get access to the two passed parameters anymore.

How can I send parameters to a .htm file from javascript in such a way so as
to access these from my code-behind on subsequent posts?

Regards
John.


Nov 18 '05 #3

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

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
39
by: Mike MacSween | last post by:
Just spent a happy 10 mins trying to understand a function I wrote sometime ago. Then remembered that arguments are passed by reference, by default. Does the fact that this slowed me down...
4
by: Mike Dinnis | last post by:
Hi, I've been working through a number of turorials to try to learn more about retrieving data from a SQL database. I think i've mastered techniques where i create a sql string in the page and...
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" ...
7
by: Oleg Konovalov | last post by:
Hi, I am trying to pass a bunch of checked checkboxes (Javascript array) from page1 to the Java action class on subsequent web page (page2). (on page 1 I have a bunch of DB rows with a checkbox,...
4
by: Ranginald | last post by:
Hi, I'm having trouble passing a parameter from my default.aspx page to my default2.aspx page. I have values from a query in a list box and the goal is to pass the "catID" from default.aspx...
1
by: rpeacock | last post by:
I am working with a page that filters my results by the parameters that I am passing in the query string. I have multiple parameters that can be applied or not depending on what the user wants to...
3
by: ajaymohank | last post by:
hello everyone..... i am ajay and i am new to php. in my project i have an option to invoke a bat file by passing parrameters and to diplay the result. i tried this code but my page got hung or...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
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...
0
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,...
0
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...

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.