使用Iframe
使用iframe可放在Table的列中
<table border="1" cellpadding="1" style="width: 100%" >
<tr>
<td valign="top" class="leftSide">
<ul id="leftNav" class="leftSide">
<asp:TreeView ID="TV_Medical" runat="server" OnSelectedNodeChanged="TV_Medical_SelectedNodeChanged" ShowLines="True">
<SelectedNodeStyle CssClass="leftNav_active" />
</asp:TreeView>
</ul>
</td>
<td valign="top">
<iframe id="right" style="width: 100%;height: 447px;" name="right" src="MedicalKnowledgDisplay_Right.aspx" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe>
如果让网页在指定的Iframe中打开,使用语句
right.location=url
结合以前C#调用javascript语句:
RegisterStartupScript("", "<script type='text/javascript'>right.location=\"MedicalKnowledgDisplay_Right.aspx?TextId=all\";</script>");