TabStrip IndexChange problem

D

Don Schilling

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top