http://expert.csdn.net/Expert/topic/2315/2315224.xml?temp=.1373102

解决方案 »

  1.   

    给你一段实例。<iewc:tabstrip id="TabStrip1" runat="server" Width="168px" BorderColor="Black" BackColor="Navy"
    Font-Size="10pt" TargetID="MultiPage1" Height="24px" TabDefaultStyle="background-color:#000000;font-family:verdana;font-weight:bold;font-size:8pt;color:#ffffff;width:79;height:21;text-align:center"
    TabHoverStyle="background-color:#777777" TabSelectedStyle="background-color:#ffffff;color:#000000">
    <iewc:Tab Text="当前定单情况"></iewc:Tab>
    <iewc:TabSeparator></iewc:TabSeparator>
    <iewc:Tab Text="所有定单"></iewc:Tab>
    </iewc:tabstrip><iewc:multipage id="MultiPage1" runat="server" Width="600px" BackColor="Control" Height="386px"
    ForeColor="Black">
    <iewc:pageview>
    <div style="BORDER-RIGHT: black 1px double; BORDER-TOP: black 1px double; BORDER-LEFT: black 1px double; WIDTH: 600px; BORDER-BOTTOM: black 1px double; HEIGHT: 380px">所有定单</div>
    </iewc:pageview>
    <iewc:pageview>
    <div style="BORDER-RIGHT: black 1px double; BORDER-TOP: black 1px double; BORDER-LEFT: black 1px double; WIDTH: 600px; BORDER-BOTTOM: black 1px double; HEIGHT: 380px">所有定单</div>
    </iewc:pageview>
    </iewc:multipage>
      

  2.   

    设置TabStrip的TargetID属性为MultiPage的ID就行
    会按顺序自动关联
      

  3.   

    我看了msdn,里面也详楼上说的一样。但是我向pageview里加了一个datagrid后并没有显示出来。是不是我安装的时候出错了。因为我安装的时候并没有找到web_client\0_1目录。这个目录是不是要自己创建的?
      

  4.   

    如果没有webctrl_client\1_0的话
    就在iis根目录建一个这两个folder
    然后copy
    IE Web Controls\src\Runtime下的所有内容到该目录下
      

  5.   

    设置TabStrip的TargetID属性为MultiPage的ID后提示错误如下
    TargetID does not point to a valid PageView 
    是怎么回事呀?高手说点详细点好吗》
      

  6.   

    multipage.aspx 页面里的主要源码如下
    <form runat="server">
    <ie:multipage id="MultiPage1" runat="server" BorderColor="Silver" Width="720px" Height="157px">
    <ie:PageView>
                标识信息
            </ie:PageView>
    <ie:PageView>
                空间信息
            </ie:PageView>
    <ie:PageView>
                属性信息
            </ie:PageView>
    </ie:multipage>
    </form>tabstrip.aspx页面里主要源码如下
    <form runat="server">
    <ie:tabstrip id="TabStrip1" runat="server" TabSelectedStyle="background-color:#ffffff;color:#000000;" TabHoverStyle="background-color:#777777;" TabDefaultStyle="background-color:#000000;font-family:verdana;font-weight:bold;font-size:8pt;color:#ffffff;width:79;height:21;text-align:center;" TargetID="MultiPage1">
    <ie:Tab Text="标识信息"></ie:Tab>
    <ie:Tab Text="空间信息"></ie:Tab>
    <ie:Tab Text="属性信息"></ie:Tab>
    </ie:tabstrip></form>
    请教:为什么出错呀?该怎样关联呢?
      

  7.   

    下面是一个小例子,复制即可运行
    WebForm1.aspx<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls,Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <script language=C# runat=server>
    void btn_click(object sender, System.EventArgs e)
    {
    Response.Write("This is page one!");
    TextBox1.Text="This is Page three!";
    }
    </script><HTML>
    <HEAD>
    </HEAD>
    <body>
    <form id="WebForm1" method="post" runat="server">
    <table height="46" width="200">
    <tr>
    <td><iewc:tabstrip id="TabStrip1" runat="server" TargetID="MultiPage1" SepDefaultStyle="background-color:#FFFFFF;border-color:#AAAAAA;&#13;&#10;   &#13;&#13;&#10;border-width:1px;border-style:solid;border-top:none;border-left:none;&#13;&#10;   border-right:none" TabDefaultStyle="color:#aaaaaa;background-color:#EEEEEE;&#13;&#10;   &#13;&#13;&#10;border-color:#AAAAAA;border-width:1px;border-style:Solid;&#13;&#10;   &#13;&#13;&#10;font-weight:bold;font-family:Verdana;font-size:11px;height:21;&#13;&#10;   width:79;text-align:center;" TabHoverStyle="color:red" TabSelectedStyle="color:#000000;background-color:#FFFFFF;&#13;&#10;   border-bottom:none" Width="100%">
    <iewc:Tab Text="第一页"></iewc:Tab>
    <iewc:TabSeparator></iewc:TabSeparator>
    <iewc:Tab Text="第二页"></iewc:Tab>
    <iewc:TabSeparator></iewc:TabSeparator>
    <iewc:Tab Text="第三页"></iewc:Tab>
    </iewc:tabstrip></td>
    </tr>
    <tr>
    <td><iewc:multipage id="MultiPage1" runat="server" Width="100%">
    <iewc:PAGEVIEW>
    <div align="center">
    <asp:Button id="Button1" runat="server" Text="第一页" Font-Size="13px" Font-Bold="True" ForeColor="#8080FF" BackColor="#FFFFC0" OnClick="btn_click"></asp:Button></div>
    </iewc:PAGEVIEW>
    <iewc:PAGEVIEW>
    <div align="center">
    <asp:Label Font-Size="13px" id="Label2" runat="server" Font-Bold="True" ForeColor="#8080FF">第二页</asp:Label></div>
    </iewc:PAGEVIEW>
    <iewc:PAGEVIEW>
    <div align="center">
    <asp:TextBox id="TextBox1" runat="server" Font-Bold="True" Width="150px" ForeColor="#8080FF">第三页</asp:TextBox></div>
    </iewc:PAGEVIEW>
    </iewc:multipage></td>
    </tr>
    </table>
    </form>
    </body>
    </HTML>