binding datatable to accordion control

D

David Lazos

Hi,

I'm using the HeaderTemplate and the ContentTemplate of the Accordion
control and binding it to a DataTable.
But it doesn't display any data. If i bind the same datatable to a datalist
it works well as expected.
Are there any tricks for Accordion Control ?
the .aspx code ;
****************
<cc1:Accordion ID="Accordion1" runat="server" FadeTransitions="True"
SelectedIndex="0" TransitionDuration="300" HeaderCssClass="accordionHeader"
ContentCssClass="accordionContent">
<Panes>
</Panes>
<HeaderTemplate>
<a href="" onclick="return false;"><%# Eval("HEADER")%></a>
</HeaderTemplate>
<ContentTemplate>
<%# Eval("CONTENT") %>
</ContentTemplate>
</cc1:Accordion>
****************

and i bind it on page_load event of aspx.cs
****************
protected void Page_Load(object sender, EventArgs e)
{
Accordion1.DataSource = for_using.getInfo(); //it returns a DataTable
Accordion1.DataBind();
}
*****************

am i doing something wrong ?

Thanks...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top