I have added ajax tab container in my web page. that has two tab pages. when i click my first tab page button i want to save the value of the first tab control values and automatically the second tab need to be open. i tried the following code but it did not open.
bool result = bil.InsertBuyer(buyer);
if (result)
{
// BuyerEntry.TabContainer1.ActiveTabIndex = 1;
// Response.Redirect("~/BuyerList.aspx?value" + 1);
// BuyerEntry.TabContainer1.Tabs[0].Visible = false;
BuyerEntry.TabContainer1.ActiveTab = BuyerEntry.TabContainer1.Tabs[1];
BuyerEntry.TabContainer1.ActiveTabIndex++;
BuyerEntry.txtbid.ReadOnly = true;
BuyerEntry.txtname1.ReadOnly = true;
BuyerEntry.txtbid.Text = buyer.BUYERID;
BuyerEntry.txtname1.Text = buyer.BUYERNAME;
}
in the above code I insert the value using InsertBuyer method. then if inserted I want to open the next tab.