Hello everybody,
I am using the TabContainer control from AJAX toolkit. I have a button on the first TAB. When the user click the button, the program supposes to do some job on the server site and display the result on the second TAB. I am trying to change the TAB programmatically from code behind on the server using statements like
Code:
TabContainer1.ActiveTabIndex = 1;
or
Code:
TabContainer1.ActiveTab = TabContainer1.Tabs[1];
inside the the button_click() event, but it does not do any good. The server code is:
Code:
protectedvoid btnEstimate_Click(object sender, EventArgs e)
{
//Put actual code in here:
if (this.DropDownList_ExtractBy.SelectedValue == "Row")
{
Count_By_Row();
}
else
{
Count_By_Group();
}
//Set the TAB with an extract information as an active TAB:
TabContainer1.ActiveTabIndex = 1;
TabContainer1.ActiveTab = TabContainer1.Tabs[1];
}
On the page I've tried to put the TabContainer inside an Update panel and outside the Update panel with and without "conditional" update and nothing work. What am I missing?
Thanks in advance for your help.
-Dmitriy 