ASP.NET 3.5 ProfessionalsIf you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
How to navigate through tabs using buttons in an ASP.NET AJAX TabContainer
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?