Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 9-May-10 8:49am
v2

1 solution

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.)
 
Share this answer
 
Comments
Pavel Yermalovich 9-May-10 16:14pm    
The problem is different. And I cant use multiple panels. There can be a thousand of html pages therefore i need to load them by their url. How to make iframe capable of resizing depending on its content length?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900