By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,498 Members | 1,564 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,498 IT Pros & Developers. It's quick & easy.

Passing parameters to a .htm page - not working

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.