IFRAME containing ASP.NET Site within a Classic ASP Page

Discussion in 'ASP .Net' started by =?Utf-8?B?TWlrZQ==?=, Jul 30, 2007.

  1. Hi.

    I've built an ASP.NET web application which exists as it's own URL. Another
    site which was created in classic ASP, and exists as it's own URL, has an
    IFRAME containing my site.

    I'm experiencing a problem with the height of the IFRAME when the ASP.NET
    site redirects to another page. If the ASP.NET site is displaying
    Default.aspx, the IFRAME height is 500. But if the user clicks a link from
    Default.aspx and navigates to Products.aspx, the IFRAME remains 500 height
    instead of resizing to fit the appropriate dimensions of Products.aspx.

    Basically the IFRAME is retaining it's original height from the Default
    page, regardless of the actual size of subsequent pages.

    Could someone recommend how I fix this?

    Thanks!
     
    =?Utf-8?B?TWlrZQ==?=, Jul 30, 2007
    #1
    1. Advertising

  2. =?Utf-8?B?TWlrZQ==?=

    Larry Bud Guest

    On Jul 30, 11:02 am, Mike <> wrote:
    > Hi.
    >
    > I've built an ASP.NET web application which exists as it's own URL. Another
    > site which was created in classic ASP, and exists as it's own URL, has an
    > IFRAME containing my site.
    >
    > I'm experiencing a problem with the height of the IFRAME when the ASP.NET
    > site redirects to another page. If the ASP.NET site is displaying
    > Default.aspx, the IFRAME height is 500. But if the user clicks a link from
    > Default.aspx and navigates to Products.aspx, the IFRAME remains 500 height
    > instead of resizing to fit the appropriate dimensions of Products.aspx.
    >
    > Basically the IFRAME is retaining it's original height from the Default
    > page, regardless of the actual size of subsequent pages.
    >
    > Could someone recommend how I fix this?


    You don't. An IFrame has a specific height. It's not going to
    resize, as it doesn't know the contents.

    It's like changing the height of your browser window. If it's too
    small, you get a scroll bar.
     
    Larry Bud, Jul 30, 2007
    #2
    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. =?Utf-8?B?TWlrZQ==?=

    Querystring Issue - ASP.NET within ASP site's IFRAME

    =?Utf-8?B?TWlrZQ==?=, Jul 12, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    807
    =?Utf-8?B?TWlrZQ==?=
    Jul 12, 2007
  2. Replies:
    0
    Views:
    914
  3. Fregas
    Replies:
    0
    Views:
    172
    Fregas
    Jan 2, 2007
  4. Gustavo
    Replies:
    0
    Views:
    98
    Gustavo
    Aug 25, 2003
  5. Daedalous
    Replies:
    3
    Views:
    823
    Daedalous
    Jan 16, 2004
Loading...

Share This Page