Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
ASP.NET 3.5 Professionals If 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 2nd, 2009, 08:47 AM
Friend of Wrox
Join Date: Jul 2003
Posts: 121
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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
TabContainer1.ActiveTabIndex = 1;

TabContainer1.ActiveTab = TabContainer1.Tabs[1];

inside the the button_click() event, but it does not do any good. The server code is:
protectedvoid btnEstimate_Click(object sender, EventArgs e)
//Put actual code in here:
if (this.DropDownList_ExtractBy.SelectedValue == "Row")
//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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET AJAX areed24 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 February 21st, 2009 06:25 AM
asp.net ajax tookit, included in Asp.net 3.5 PeterPeiGuo Visual Web Developer 2008 1 January 6th, 2009 04:25 AM
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
Default Buttons - in ASP.NET webforms brameshkannan Classic ASP Professional 2 August 2nd, 2004 03:32 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.