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>
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>