Hello,
It seems you have to set the ActiveTabIndex to 0 programmatically to make the TabContainer visible.
By the way, I have another error with the tab container.
I add some tab in my tab container programmatically. ie :
1 QuarterCalculationContainer.Tabs.Clear()
2 For i As Integer = 0 To yearForecasts.ForecastsList.Count - 1
3 Dim panel As New TabPanel()
4 panel.ID = "Panel_" & yearForecasts.ForecastsList.Keys(i).QuarterId & "_" & yearForecasts.ForecastsList.Keys(i).QuarterYear.Value
5 panel.HeaderText = yearForecasts.ForecastsList.Keys(i).ToString()
6 Dim table as New Table()
7 panel.Controls.Add(table)
8 QuarterCalculationContainer.Tabs.Add(panel)
9 Next
10 QuarterCalculationContainer.ActiveTabIndex = 0
It works fine when the page renders for the first time, but in each panel, I have some button.
When I click on one of those buttons, an exception is caught, because the Tab Container has 0 panel, and the ActiveTabIndex is set to 0.
Does anybody know how to make the Tab Container remember of its panels ?
Thanks a lot
Vincent