I\'m creating Admin Panel using Ajax tab container which has 5 tapPanels and in that each tapPanel, I have one Panel from standard tool. And in that each Panel, I have GridView
Please use the following code:
AjaxControlToolkit.TabContainer container = (AjaxControlToolkit.TabContainer)TabConAddInfo;
int index = container.ActiveTabIndex;
if (index == 0)
{
addSplash();
lblMsgAdd.Text = "Added successfully";
}
else if (index == 1)
{
addMainCat();
lblMsgAdd.Text = "Added successfully";
}
else if (index == 2)
{
addSubCat();
lblMsgAdd.Text = "Added successfully";
}
else if (index == 3)
{
addBusinessContact();
lblMsgAdd.Text = "Added successfully";
}
else if (index == 4)
{
addPersonContact();
lblMsgAdd.Text = "Added successfully";
}