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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
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?