Hii all
I m creating dynamic tabpanel first time code is working properly but after postback its give error in TabContainer.cs class of "wrong ActiveTabIndex"
i m using below code-
protected void Page_Load(object sender, EventArgs e)
{
for (int i = 0; i <= 5; i++)
{
AjaxControlToolkit.TabPanel tp = new AjaxControlToolkit.TabPanel();
tp.ID = "tab" + i.ToString();
tp.HeaderText = "test" + i.ToString();
tp.TabIndex = Convert.ToInt16(i);
Image _image = new Image();
_image.ID = "image" + i.ToString();
_image.ImageUrl = "Menu_Temp.Jpeg";
tp.Controls.Add(_image);
TabContainer1.Tabs.Add(tp);
}
TabContainer1.ActiveTabIndex = 0;
}
...
Go to the complete details ...