Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers 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 developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 2nd, 2009, 08:47 AM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , .
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
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:01 AM.


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