Passing parameters to a .htm page - not working

Discussion in 'ASP .Net' started by John, Oct 21, 2004.

  1. John

    John Guest

    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.
    John, Oct 21, 2004
    #1
    1. Advertising

  2. John

    Sahil Malik Guest

    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" <> wrote in message
    news:...
    > 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.
    >
    >
    Sahil Malik, Oct 21, 2004
    #2
    1. Advertising

  3. John

    John Guest

    I found just the 'magic solution you were talking about - thanks.

    "Sahil Malik" <> wrote in message
    news:#...
    > 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" <> wrote in message
    > news:...
    > > 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.
    > >
    > >

    >
    >
    John, Oct 21, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Priyanka AGARWAL
    Replies:
    9
    Views:
    9,946
    Gordon Beaton
    May 25, 2004
  2. moondaddy
    Replies:
    4
    Views:
    1,137
    Steven Cheng[MSFT]
    Sep 13, 2007
  3. Valli
    Replies:
    2
    Views:
    465
    Valli
    Oct 22, 2007
  4. guy

    asp page from htm page

    guy, Feb 28, 2005, in forum: ASP General
    Replies:
    7
    Views:
    149
    Jason Brown [MSFT]
    Mar 1, 2005
  5. Replies:
    6
    Views:
    156
    Dr.Ruud
    Feb 6, 2007
Loading...

Share This Page