The tab container itself contains ajax functionality
Most Controls that contain built in ajax functionality dont work well in an UpdatePanel because the javascript does not gets send in an update panel during partial updates
You will need to keep the tab container outside of an update panel.
This however causes the problem of the tab container state not being updated from the code behind. For example i was not able to change the active tab from code behind in a partial postback.
The turnaround for this was that i used javascript
the below code shows how exactly
first io create a javascript function to change the active tab index
function ChangeTab(indx)
{
$find('<%=TabContainer1.ClientID%>').set_activeTabIndex(indx)
}
$find('<%=TabContainer1.ClientID%>') gets a reference to the tab container object in the javascript
then called this from code behind using the following
ScriptManager.RegisterStartupScript(
Me, updButtonBar.GetType, "KEY", "ChangeTab(2);", True)
here the me is the page and updbuttonbar is the update panel . It can be any update panel in the page.
In this way you can manipulate the tab container by calling any of the methods of the tab container javascript object.
If you want to find the listing of the methods save As the page containing the tab container as a complete web page on ur local hard drive
in one of the resources file u can find the methods the javascript object tab container contains or perhaps download the ajax control toolkit source
This ways was good enough for me.
Let me know if it helps
Cheers
Sohail Sayed
P.S. - Mark the post as answer if it helps you.
Cheers
Sohail Sayed