The code I wrote for adding new tab is as follows:
protected void Button1_Click(object sender, EventArgs e)
{
tabcount = tabcount + 1;
AjaxControlToolkit.TabPanel tab = new AjaxControlToolkit.TabPanel();
TabContainer1.Tabs.Add(tab);
tab.ID = "tab" + Convert.ToString(tabcount);
}
Tab count is initialized before and I am incrementing it before adding new tab.
The error I get on adding the tab second time is:
Specified argument was out of the range of valid values.
Parameter name: value
Any help will be appreciated. Thank You.

New Topic/Question
Reply




MultiQuote





|