添加一个控件Menu再添加一个
在标准控件中。
设计:
源:
- <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" Width="501px" StaticEnableDefaultPopOutImage="False"
- onmenuitemclick="Menu1_MenuItemClick" BackColor="White"
- DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="14pt"
- ForeColor="#7C6F57" StaticSubMenuIndent="10px" Font-Bold="True">
- <StaticSelectedStyle BackColor="Silver" ForeColor="White" />
- <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
- <DynamicHoverStyle BackColor="#FF9900" ForeColor="White" />
- <DynamicSelectedStyle BackColor="#CC9900" />
- <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
- <StaticHoverStyle BackColor="#99CCFF" ForeColor="White" />
- <Items>
- <asp:MenuItem Value="0" Text="基本资料" Selected="True"></asp:MenuItem>
- <asp:MenuItem Value="1" Text="联系方式"></asp:MenuItem>
- <asp:MenuItem Value="2" Text="交友资料"></asp:MenuItem>
- <asp:MenuItem Value="3" Text="兴趣爱好"></asp:MenuItem>
- <asp:MenuItem Value="4" Text="自我介绍"></asp:MenuItem>
- </Items>
- </asp:Menu>
设计:
源:
- <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
- <asp:View ID="BasicInfo" runat="server">
- <table style="width: 100%;">
- <tr>
- <td>
- tab2
- </td>
- </tr>
- </table>
- </asp:View>
- <asp:View ID="tab2" runat="server">
- <table>
- <tr>
- <td>
- tab2
- </td>
- </tr>
- </table>
- </asp:View>
- <asp:View ID="View1" runat="server">
- <table>
- <tr>
- <td>
- tab3
- </td>
- </tr>
- </table>
- </asp:View>
- <asp:View ID="View2" runat="server">
- <table>
- <tr>
- <td>
- tab4
- </td>
- </tr>
- </table>
- </asp:View>
- <asp:View ID="View3" runat="server">
- <table>
- <tr>
- <td>
- tab5
- </td>
- </tr>
- </table>
- </asp:View>
- </asp:MultiView>