TabStrip Object

numfienny

New Member
Hi could anyone tell me about the TabStrip control. I have a few aspx pages. How do I use the TabStrip control to display all the pages, TabBased. I went through the documentation. But it looks like we have to write the code in just one file. <BR><BR>Can anyone help me how to do this.hi<BR>Well merely having ASPX pages wont serve any purpose<BR>u need to download iewebcontrols frm msdn and run the set up<BR>DhirajI downloaded the iewebcontrols install and tried setting up a tabstrip. Vb doesn't recognize the selectedindex changed event.<BR>Any ideas?<BR><BR>Here's the aspx code:<BR><BR><%@ register TagPrefix="mytab" Namespace="Microsoft.Web.UI.WebControls" Assembly ="Microsoft.Web.UI.WebControls" %><BR><%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="LPLoad.WebForm1"%><BR><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><BR><HTML><BR> <HEAD><BR> <title>WebForm1</title><BR> <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0"><BR> <meta name="CODE_LANGUAGE" content="Visual Basic 7.0"><BR> <meta name="vs_defaultClientScript" content="JavaScript"><BR> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"><BR> </HEAD><BR> <body><BR> <form id="Form1" method="post" runat="server"><BR> <mytab:TabStrip runat="server" ID="myTabStrip" Orientation="Horizontal" AutoPostback="true"><BR> <mytab:TAB id="tabAbout" runat="server" Text="About Us"></mytab:TAB><BR> <mytab:TABSEPARATOR id="TABSEPARATOR1" runat="server"></mytab:TABSEPARATOR><BR> <mytab:TAB id="tabResources" runat="server" Text="Resources"></mytab:TAB><BR> </mytab:TabStrip><BR> </form><BR> </body><BR></HTML><BR><BR><BR>The vb code is:<BR><BR>Public Class WebForm1<BR> Inherits System.Web.UI.Page<BR> Protected myTabStrip As Microsoft.Web.UI.WebControls.TabStrip<BR> Protected WithEvents POLC As System.Web.UI.WebControls.Button<BR><BR>#Region " Web Form Designer Generated Code "<BR><BR> 'This call is required by the Web Form Designer.<BR> <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()<BR><BR> End Sub<BR><BR> Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init<BR> 'CODEGEN: This method call is required by the Web Form Designer<BR> 'Do not modify it using the code editor.<BR> InitializeComponent()<BR> End Sub<BR><BR>#End Region<BR><BR> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<BR> 'Put user code to initialize the page here<BR> End Sub<BR><BR> Private Sub myTabStrip_SelectedIndexChange(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles myTabStrip.SelectedIndexChange<BR><BR> Select Case sender.SelectedIndex<BR> Case 0<BR> Server.Transfer("Form1.aspx")<BR> Case 1<BR> Server.Transfer("Form2.aspx")<BR> End Select<BR> End Sub<BR>End Class<BR>You should set AutoPastBack as TRUE
 
Back
Top