By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,424 Members | 1,316 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,424 IT Pros & Developers. It's quick & easy.

binding datatable to accordion control

P: n/a
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...
Jul 1 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
i have just found this trick
http://www.codeplex.com/AjaxControlT...rkItemId=10472

Jul 1 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.