TabStrip IndexChange problem

Discussion in 'ASP .Net Web Controls' started by Don Schilling, May 6, 2005.

  1. I have a tab strip that works fine, excpet, whatever tab is in the first
    position, when clicked, the SelectedIndex is blank. Here is the event, all
    I'm doing is showing the index to a label. No matter which tab I put into
    position 0, when clicked, the label is empty.

    private void chng_tsTop(object sender, System.EventArgs e)
    {
    lblMsg.Text = tsTop.SelectedIndex.ToString();


    <iewc:tabstrip id="tsTop" runat="server" Font-Bold="True" Font-Size="10pt"
    Font-Names="Tahoma"
    BorderWidth="2px" BorderStyle="Outset"
    TabDefaultStyle="background-color:#1a526b;color:#ffff99;width:79;height:21;t
    ext-align:center;"
    TabHoverStyle="background-color:#4e4eba;"
    TabSelectedStyle="background-color:#327896;color:#ffffff;"
    AutoPostBack="True" EnableViewState="False">
    <iewc:Tab Text="Contacts" ID="Contacts" TabIndex="3"></iewc:Tab>
    <iewc:Tab Text="Search" ID="Search" TabIndex="1"></iewc:Tab>
    <iewc:Tab Text="Customers" ID="Customers" TabIndex="2"></iewc:Tab>
    <iewc:Tab Text="Projects" ID="Projects" TabIndex="4"></iewc:Tab>
    </iewc:tabstrip>
     
    Don Schilling, May 6, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Sm9obg==?=
    Replies:
    0
    Views:
    431
    =?Utf-8?B?Sm9obg==?=
    Apr 12, 2005
  2. Pooja Renukdas

    problem using Microsoft.Web.UI.Webcontrols Tabstrip

    Pooja Renukdas, Aug 7, 2003, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    196
    Pooja Renukdas
    Aug 7, 2003
  3. Calvin

    Tabstrip and javascript problem

    Calvin, Jul 11, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    116
    Calvin
    Jul 11, 2003
  4. Hal
    Replies:
    1
    Views:
    167
  5. Thanigaimani.thirumalai

    Hi guys . i have problem in dropldown list select indexchange event

    Thanigaimani.thirumalai, Nov 7, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    136
    Thanigaimani.thirumalai
    Nov 7, 2007
Loading...

Share This Page