Hi,
I am a newbie to AJAX and .NET and cannot seem to solve the following.
I have a Tabcontainer which has 5 tab panels.
The Tabcontainer is contained within a table.
I have another table which has a few buttons and I would want to do something onclick of one of the button's depending on whats within the tabpanel. As per some of the forum posts I have a Label in the 2nd table which I use to store the current selected Tab. The script is as below:
function ActiveTabChanged(sender, e)
{
var CurrentTab = $get('<%=Label1.ClientID%>');
Label1.innerHTML = sender.get_activeTab().get_headerText();
__doPostBack('<%= TabContainerBatch.ClientID %>', sender.get_activeTab().get_headerText());
}
Depending on the value of Label1.Text I want to do something serverside. After the page is rendered for some reason I cannot seem to read the value of Label1 although the display of Label1 changes to the correct TabPanel headerText onclick of any TabPanel. Label1.Text from within Page load always seems to return the default value whereas the display seems to show me the right value of the headertext of the selected TabPanel. Can you please let me know what I might be doing wrong here.