这是俺好象从江雨哪儿来的,感觉不错,你看看
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls,Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<HTML>
<HEAD>
<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>
</HEAD>
<body MS_POSITIONING="GridLayout">
<TABLE height="357" cellSpacing="0" cellPadding="0" width="297" border="0" ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="297" height="357">
<form id="WebForm1" method="post" runat="server">
<TABLE height="280" cellSpacing="0" cellPadding="0" width="345" border="0" ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="1" height="15"></TD>
<TD width="187"></TD>
<TD width="157"></TD>
</TR>
<TR vAlign="top">
<TD height="240"></TD>
<TD colSpan="2">
<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%" Height="147px">
<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>
</TD>
</TR>
<TR vAlign="top">
<TD colSpan="2" height="25"></TD>
<TD>
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox></TD>
</TR>
</TABLE>
</form>
</TD>
</TR>
</TABLE>
</body>
</HTML>

解决方案 »

  1.   

    好的,谢谢你。我自己也做了一下。和大家分享
    <iewc:TabStrip id="iewcTabStrip" style="Z-INDEX: 102; LEFT: 32px; POSITION: absolute; TOP: 22px" runat="server" TargetID="iewcMPage" Orientation="Horizontal" TabSelectedStyle="background-color:#FFFFFF;border-bottom:none;" TabHoverStyle="background-color:#FFFFFF;" TabDefaultStyle="color:#000000;background-color:#C6DFC6;border-color:#000000;border-style:Solid;border-width:1px;" Height="23px">
    <iewc:Tab Text="&nbsp; 列表信息&nbsp;  "></iewc:Tab>
    <iewc:TabSeparator DefaultStyle="BORDER-BOTTOM: black 1px solid; "></iewc:TabSeparator>
    <iewc:Tab Text="&nbsp; 详细信息&nbsp;"></iewc:Tab>
    <iewc:TabSeparator DefaultStyle="BORDER-BOTTOM: black 1px solid; "></iewc:TabSeparator>
    <iewc:Tab Text="&nbsp; 没有了&nbsp; "></iewc:Tab>
    <iewc:TabSeparator DefaultStyle="height:100%;BORDER-BOTTOM: black 1px solid; "></iewc:TabSeparator>
    </iewc:TabStrip>
    <iewc:MultiPage id="iewcMPage" style="Z-INDEX: 101; LEFT: 32px; POSITION: absolute; TOP: 44px" runat="server" Height="151px" Width="441px" ForeColor="Black" BackColor="White" BorderWidth="1px" BorderStyle="Solid" BorderColor="Black">
    <iewc:PageView id="Page1">
    <h2 class="H2">Page 1
    </h2>
    <p class="P2">
    Static Text of Page 1
    </p>
    </iewc:PageView>
    <iewc:PageView id="Page2">
    <h2 class="H2">Page 2
    </h2>
    <p class="P2">
    <asp:Label Text="ASP.NET WebControls" runat="server" ID="Label1" NAME="Label1" />
    <asp:Button Text="Click" runat="server" ID="Button1" NAME="Button1" />
    </p>
    </iewc:PageView>
    <iewc:PageView id="Page3">
    <h2 class="H2">Page 3
    </h2>
    <p class="P2">
    Content of Page 3
    </p>
    </iewc:PageView>
    </iewc:MultiPage>
      

  2.   

    使用MultiPage+TabStrip
    上部可通过设置TabStrip的style
    下面就是设置Multipage的PageView了,可以使用DataGrid或Table