Oct 14, 2010 04:37 AM|dore_mark|LINK
OK, first things are that I am using .NET 4.0 with Telerik Rad Controls version Ajax Q2 2010 Net 4 and the .NET 4 version of the AJAX Control Toolkit.
The website I am working on uses the Telerik Rad Controls quite extensivley but I really wanted to use the Accordion control from the ajax control toolkit as I believe this is better than the alternative from the Telerik product range. After messing about
trying to get the two to work together I finally achieved this and functionally we are working OK. However.......... I get the following error when trying to validate the page for valid XHTML
</div><div id="ctl08" style="display:block;">
An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are
used to identify exactly one element).
…ntState" id="ctl08_Accordion1_AccordionExtender_ClientState" /><div id="ctl08">
For simplicity, I removed the accordion I was trying to create and inserted a brand new one with as little data as possible.
<ajaxtoolkit:Accordion ID="Accordion1" runat="server">
<ajaxtoolkit:AccordionPane runat="server" ID="pane1">
TEST 1 CONTENT</Content>
Even this simple example gives me the exact same error. The header and the content are given the same id even though I have given the accordion pane its own id of pane1. Looking at the HTML, it is just confusing:
<input type="hidden" name="ctl08$Accordion1_AccordionExtender_ClientState" id="ctl08_Accordion1_AccordionExtender_ClientState" /> <div id="ctl08"> TEST 1 </div> <div id="ctl08" style="display:block;"> TEST 1 CONTENT </div></div>The accordion pane id of pane1 is nowhere to be seen and you can see clearly that the id of the header and the content are both ct108.I have been searching round all of the forums and have not found one person who has had the same issue, please help!!! I am very close to removing the control from the page and going back to using the telerik rad controls as thereis pressure to get this website out the door.Thanks a lot in advance for your helpMark