扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
<asp:Menu ID="Menu1" Width="168px" runat="server" Orientation="Horizontal" StaticEnableDefaultPopOutImage="False" OnMenuItemClick="Menu1_MenuItemClick"> <Items> <asp:MenuItem ImageUrl="~/selectedtab.GIF" Text=" " Value="0"></asp:MenuItem> <asp:MenuItem ImageUrl="~/unselectedtab.GIF" Text=" " Value="1"></asp:MenuItem> <asp:MenuItem ImageUrl="~/unselectedtab.GIF" Text=" " Value="2"></asp:MenuItem> </Items> </asp:Menu> |
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0" > <asp:View ID="Tab1" runat="server" > <table width="600" height="400" cellpadding=0 cellspacing=0> <tr valign="top"> <td class="TabArea" style="width: 600px"> TAB VIEW 1 INSERT YOUR CONENT IN HERE CHANGE SELECTED IMAGE URL AS NECESSARY </td> </tr> </table> </asp:View> <asp:View ID="Tab2" runat="server"> <table width="600px" height="400px" cellpadding=0 cellspacing=0> <tr valign="top"> <td class="TabArea" style="width: 600px"> TAB VIEW 2 INSERT YOUR CONENT IN HERE CHANGE SELECTED IMAGE URL AS NECESSARY </td> </tr> </table> </asp:View> <asp:View ID="Tab3" runat="server"> <table width="600px" height="400px" cellpadding=0 cellspacing=0> <tr valign="top"> <td class="TabArea" style="width: 600px"> TAB VIEW 3 INSERT YOUR CONENT IN HERE CHANGE SELECTED IMAGE URL AS NECESSARY </td> </tr> </table> </asp:View> </asp:MultiView> |
Protected Sub Menu1_MenuItemClick(ByVal sender As Object, _ ByVal e As MenuEventArgs) Handles Menu1.MenuItemClick MultiView1.ActiveViewIndex = Int32.Parse(e.Item.Value) Dim i As Integer For i = 0 To Menu1.Items.Count - 1 If i = e.Item.Value Then Menu1.Items(i).ImageUrl = "selectedtab.gif" Else Menu1.Items(i).ImageUrl = "unselectedtab.gif" End If Next End Sub |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者