<asp:accordionpane id="colors">
<header> colors</header>
<content>
<div> blue </div>
<div> red </div>
<div> gray </div>
</content>
</accordionpane>
is there a way to find no of divs and traverse the loop
and store there names in arrays say string colors{} = accordionpane.div("blue"), accordionpane.div("red"), accordionpane.div("gray")
or is there a way to find an accordionpane has div or not
Make it
runat=server
(or even better- aPanel
) if you want to access it on serverside. Otherwise you cannot traverse thecolors.Controls
since it's empty.Now this Linq query works: