472,143 Members | 1,850 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 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 2744
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by domeceo | last post: by
4 posts views Thread by Mike Dinnis | last post: by
7 posts views Thread by Oleg Konovalov | last post: by

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.