asp.net 左边固定菜单,URL地址不变

<head runat="server">
    <title></title>
    <script language="javascript" type="text/javascript">
        window.onload = function () {
            var ifr = document.getElementById("iframeContent");
            var width = window.screen.width*0.9;
            var height = window.screen.height * 0.78;
            ifr.width = width;
            ifr.height = height;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div >
        <table >
        <tr>
        <td valign="top">
        <asp:TreeView ID="TreeView1" runat="server"  >
         <Nodes>
            <asp:TreeNode Value="About.aspx" Text="菜单一" NavigateUrl="About.aspx"  Target="Content" ></asp:TreeNode>
            <asp:TreeNode Value="Menu.aspx" Text="菜单二"  NavigateUrl="Default.aspx"  Target="Content"></asp:TreeNode>
         </Nodes>
        </asp:TreeView>
        </td>
        <td>
        <iframe name="Content" id="iframeContent" scrolling="no"  frameborder="0" ></iframe>
        </td>
        </tr>
    </table>  
    </div>
    </form>
</body>
</html>

相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页