<a href="rightframe.htm" target="rightframeName">右边窗口</a>

解决方案 »

  1.   

    给你原码
    HTML代码
    <%@ Register TagPrefix="cc1" Namespace="CYBERAKT.WebControls.Navigation" Assembly="ASPnetMenu" %>
    <%@ Page language="c#" Codebehind="MainWebForm.aspx.cs" AutoEventWireup="false" Inherits="CusManageSystem.MainWebForm" %>
    <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    <HEAD>
    <title>MainWebForm</title>
    <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
    <meta content="C#" name="CODE_LANGUAGE">
    <meta content="JavaScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    </HEAD>
    <body ms_positioning="GridLayout">
    <form id="MainWebForm" method="post" runat="server">
    <FONT face="宋体">
    <asp:button id="Button4" style="Z-INDEX: 106; LEFT: 272px; POSITION: absolute; TOP: 32px" runat="server" Width="97px" Height="23px" Text="文件通知" BorderStyle="Solid"></asp:button>&nbsp;
    <iframe style="Z-INDEX: 100; LEFT: 192px; WIDTH: 568px; POSITION: absolute; TOP: 56px; HEIGHT: 86.73%" name="MainArea" align="left" hspace="0" vspace="0" src="FLashWebForm.aspx" frameBorder="0" width="778" scrolling="auto" height="100%">
    </iframe>
    <asp:button id="Button1" style="Z-INDEX: 101; LEFT: 94px; POSITION: absolute; TOP: 34px" runat="server" BorderStyle="Solid" Text="系统管理" Height="23px" Width="87px"></asp:button><iewc:treeview id="TreeView1" style="Z-INDEX: 102; LEFT: -5px; POSITION: absolute; TOP: 57px" runat="server" Height="322px" Width="192px" ExpandLevel="2" BackColor="#C0C0FF">
    <iewc:TreeNode ImageUrl="UsrPicture/button-help.gif" Text="系统管理" Expanded="True"></iewc:TreeNode>
    </iewc:treeview><asp:button id="Button2" style="Z-INDEX: 104; LEFT: 179px; POSITION: absolute; TOP: 34px" runat="server" BorderStyle="Solid" Text="走访处理" Height="23px" Width="97px"></asp:button>
    <asp:Button id="Button3" style="Z-INDEX: 105; LEFT: -2px; POSITION: absolute; TOP: 34px" runat="server" BorderStyle="Solid" Text="基础资料维护" Height="23px" Width="98px"></asp:Button></FONT></form>
    </body>
    </HTML>
      

  2.   

    C#原码 TreeView1.Nodes.Clear(); Microsoft.Web.UI.WebControls.TreeNode node00=new Microsoft.Web.UI.WebControls.TreeNode();
    node00.Text="系统管理";

    TreeView1.Nodes.Add(node00);  
    node00.NavigateUrl="EditUserWebForm.aspx";
    node00.Target="MainArea";
    node00.ImageUrl="UsrPicture/speakerd.ico";
                 //----------------------------------------------------- Microsoft.Web.UI.WebControls.TreeNode node=new Microsoft.Web.UI.WebControls.TreeNode();
        node.Text="组织结构维护";

    node00.Nodes.Add(node);   node.NavigateUrl=@"SystemManage\Organization\OrganizationWebForm.aspx?OrgID="+OrgID+"&OrgName="+OrgName;
    node.Target="MainArea";
    //注意事项
    node.NavigateUrl是你要再框架中显示的页名;
    node.Target="MainArea"; 其中 MainArea是框架名称,
      

  3.   

    2种方法:1是在<head>中加入<base target="main">
             2是指定页面输出的框架与目标框架同名。csdn中就好像是这样写的
      

  4.   

    已参考CSDN上提供的方法解决问题,结帖啦!