日期:2014-05-18  浏览次数:20552 次

不知道为什么不能在iframe框架里显示网页??高手帮帮忙!!!
<table>
  <tr>
  <td>
  <asp:TreeView ID="TreeView2" runat="server" CssClass="css" Font-Size="Small"
  ForeColor="#072EAB" Height="253px" ImageSet="BulletedList3" LineImagesFolder="~/icon" ShowExpandCollapse="False"
  Width="150px">
  <ParentNodeStyle Font-Bold="False" />
  <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
  <SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px"
  VerticalPadding="0px" />
  <Nodes>
  <asp:TreeNode Text="桌面" Value="桌面">
  <asp:TreeNode NavigateUrl="~/zuece/zuece.aspx" Target="MainFrame" Text="查看公告"
  Value="查看公告"></asp:TreeNode>  
  </asp:TreeNode>
   
  </Nodes>
  <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="5px"
  NodeSpacing="0px" VerticalPadding="0px" />
  </asp:TreeView>
  </td>
  <td>
  <iframe id="MainFrame" style="width: 720px; height: 455px;" frameborder="0" width="700">
  </iframe>
  </td>
  </tr>
  </table>

点连接时会重新打开一个窗体
不知道为什么不能在iframe框架里显示网页??高手帮帮忙!!!

------解决方案--------------------
C# code
<iframe name="MainFrame" id="MainFrame" style="width: 720px; height: 455px;" frameborder="0" width="700">
  </iframe>