IFRAME containing ASP.NET Site within a Classic ASP Page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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.
 
Back
Top