我可以使用什么代替IFRAME? [英] What can I use instead of IFRAME?

查看:1055
本文介绍了我可以使用什么代替IFRAME?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发学习网站.我有一个页面Lecture.aspx,我想在其中加载带有讲座信息的不同html文件.现在,我使用IFRAME动态更改演讲.但是我没有设法扩展我的IFRAME.

I''m developing learning web site. I have a page Lecture.aspx where I want to load different html files with lecture information. Now I use IFRAME to dynamically change lecture. But I didn''t manage to stretch my IFRAME.

<div>
        <table id="frmLection" runat="server" border="0" width="100%" height="100%">
            <tr>
                <td id="td_left1" align="left" valign="top" width="100%">
                    <iframe id="left1" marginwidth="0" frameborder="0" width="100%" height="100%" scrolling="no">
                    </iframe>
                </td>
            </tr>
        </table>
    </div>



拜托,有人可以给我一些建议.也许还有另一种方法可以实现它?



Please, could someone give me a piece of advice how to do it. Or maybe there is another way to implement it?

推荐答案

您可以保留多个面板并根据条件使用可见性.如果需要,可以进行部分渲染,并且仅使用AJAX可以刷新面板.

如果无法从前设计面板,请在运行时进行设计,然后根据所选条件重新渲染(使用更新面板"或回调".)
You can keep multiple panels and play with the visibility based on a criteria. If, you need you can have partial rendering and only panels would get refreshed using AJAX.

If the panels cannot be designed from before, then design them at runtime and re-render them based on the criteria selected (use Update Panels or Callback for it.)


这篇关于我可以使用什么代替IFRAME?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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