HTML框架 - asp.net应用程序 [英] HTML Frames - asp.net application

查看:91
本文介绍了HTML框架 - asp.net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个带框架的经典asp网页。该框架包含一个asp.net应用程序。 .net app高度不断变化。我不想要2个滚动条。任何想法将不胜感激。

谢谢,

Martin

Hi,
I have a classic asp webpage with a frame. The frame contains a asp.net application. The .net app height constantly changes in height. I don't want 2 scroll bars. Any ideas will be greatly appreciated.
Thanks,
Martin

推荐答案

< iframe src =http :// localhost:2504 / frame.aspxid =frameIdclass =myIframewidth =900scrolling =no/>



我想我已经死了,因为经典的asp网站和.net应用程序位于不同的服务器/域中。我尝试了下面的操作并且我被拒绝了



<iframe src="http://localhost:2504/frame.aspx" id="frameId" class="myIframe" width="900" scrolling="no"/>

I think I'm dead in the water because the classic asp website and the .net application are in different servers/domains. I tried the following and I get access denied


' iframe')。load(function(){
this .style.height = this .contentWindow.document.body.offsetHeight + ' px';
});
('iframe').load(function () { this.style.height = this.contentWindow.document.body.offsetHeight + 'px'; });





但是,如果他们有相同的域名。但是,这是另一个缺点,.net应用程序使用AJAX,所以当.net应用程序返回更多记录时,框架高度保持不变,你无法看到所有记录。

Martin



However, if they have the same domain it works. But, here is another drawback, the .net application uses AJAX so when the .net application returns more records, the frame height stays the same and you cant see all the records.
Martin


有没有人对此有任何想法?

谢谢,

Martin
Does anyone have any ideas on this?
Thanks,
Martin


这篇关于HTML框架 - asp.net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆