TabStrip Control: tab clicked event (VB.net)
<%@ Page Language=VB Debug=true %>
<%@ Import Namespace="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="IEControls"
Namespace="Microsoft.Web.UI.WebControls"
Assembly ="Microsoft.Web.UI.WebControls"
%>
<script runat=server>
Sub TabStrip_Clicked(Sender As Object, E As EventArgs)
lblMessage.Text = "You clicked tab number " _
& MyTabStrip.SelectedIndex & "."
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Creating a Basic TabStrip Control</TITLE>
</HEAD>
<BODY LEFTMARGIN="40">
<form runat="server">
<IEControls:tabstrip
id="MyTabStrip"
runat="server"
forecolor="DarkBlue"
backcolor="DarkBlue"
onselectedindexchange="TabStrip_Clicked"
autopostback="True"
>
<IEControls:tab
id="Tab1"
runat="server"
text=" The first button "
tooltip="Click Me!!!"
/>
<IEControls:tab
id="Tab2"
runat="server"
Text=" The second button "
/>
<IEControls:tab
id="Tab3"
runat="server"
Text=" The third button "
/>
</IEControls:tabstrip>
<BR><BR>
<asp:label
id="lblMessage"
runat=server
/>
</form>
</BODY>
</HTML>
Related examples in the same category