我可以使用什么代替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.)