我对于写网页刚开始起步,所以问的问题会比较低级.请原谅菜鸟的无知.我这是一个Deafault.aspx,里面有一个iframe,其id值为'person',初始指向personclassfication.aspx,我希望通过点击Treeview中的一个node,而使iframe中的页面转换,即和csdn中左边的导航栏的效果一样。
它变成group.aspx,所以我把treeview中的属性的NavigateUrl="~/Group.aspx",Target="person"但是现在的问题是,我每次点几 节点,它并没有在 这个页面中的iframe进行页面的跳转,而是又新开一个浏览器,出现group.aspx..怎么解决这个问题,达到我所要的效果呢<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TreeView ID="TreeView1" runat="server" Style="z-index: 100; left: 0px; position: absolute;
            top: 0px" Target="person">
            <Nodes>
                <asp:TreeNode NavigateUrl="~/Group.aspx" Text="新建节点" Value="新建节点" Target="person" ></asp:TreeNode>
            </Nodes>
        </asp:TreeView>       
    <iframe src ="personClassification.aspx"  id = "person" marginheight="0" marginwidth="0" scrolling="auto" style="z-index: 104; left: 449px; width: 220px; position: absolute; top: 17px; height: 504px"></iframe>
    </div>
    </form>   
</body>
</html>