p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
I forgot my password Register Now
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 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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 2nd, 2009, 09:47 AM
Friend of Wrox
Points: 634, Level: 9
Points: 634, Level: 9 Points: 634, Level: 9 Points: 634, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
Posts: 120
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 01:33 AM
how to add aditional buttons to asp.net page? method ASP.NET 1.1 8 May 4th, 2005 03:00 AM
Default Buttons - in ASP.NET webforms brameshkannan Classic ASP Professional 2 August 2nd, 2004 04:32 AM



All times are GMT -4. The time now is 02:11 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc