Hi, i am creating dinamically tabs on a TabContainer and all display and work well.
But when the you look the HTML of TabPanel have the id repeated like that:
<div id="ctl00_uxcph_body_uxtc_tabs_uxtp_es" id="ctl00_uxcph_body_uxtc_tabs_uxtp_es" class="ajax__tab_panel">
ASPX CODE OF TAB CONTAINER
This is inside an asp:Content element.
<ajaxToolkit:TabContainer ID="uxtc_tabs" runat="server" />
ASPX.CS CODE OF CREATING TABS
TabPanel tabPanel = new TabPanel();
tabPanel.ID = "uxtp_" + idioma.Abreviatura;
tabPanel.HeaderText = idioma.Nombre;
uxtc_tabs.Tabs.Add(tabPanel);
After this code, I created other controls inside the TabPanel like HtmlGenericControl, Label, TextBox, UpadePanel and RequiredFieldValidator and all works and displays fine.
Comments: This is still an issue even with the latest release 4.1.60623.0 (Sat Jun 23 2012 at 9:00 AM) Your own example, http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx, exhibits this issue: <div id="ctl00_SampleContent_Tabs_Panel1" id="ctl00_SampleContent_Tabs_Panel1" class="ajax__tab_panel"> Although it does not seem to be a problem, per se, W3C will not validate a page with a TabControl
But when the you look the HTML of TabPanel have the id repeated like that:
<div id="ctl00_uxcph_body_uxtc_tabs_uxtp_es" id="ctl00_uxcph_body_uxtc_tabs_uxtp_es" class="ajax__tab_panel">
ASPX CODE OF TAB CONTAINER
This is inside an asp:Content element.
<ajaxToolkit:TabContainer ID="uxtc_tabs" runat="server" />
ASPX.CS CODE OF CREATING TABS
TabPanel tabPanel = new TabPanel();
tabPanel.ID = "uxtp_" + idioma.Abreviatura;
tabPanel.HeaderText = idioma.Nombre;
uxtc_tabs.Tabs.Add(tabPanel);
After this code, I created other controls inside the TabPanel like HtmlGenericControl, Label, TextBox, UpadePanel and RequiredFieldValidator and all works and displays fine.
Comments: This is still an issue even with the latest release 4.1.60623.0 (Sat Jun 23 2012 at 9:00 AM) Your own example, http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx, exhibits this issue: <div id="ctl00_SampleContent_Tabs_Panel1" id="ctl00_SampleContent_Tabs_Panel1" class="ajax__tab_panel"> Although it does not seem to be a problem, per se, W3C will not validate a page with a TabControl