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

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"
<a href="" onclick="return false;"><%# Eval("HEADER")%></a>
<%# Eval("CONTENT") %>

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

am i doing something wrong ?

Jul 1 '08 #1
Share this Question
Share on Google+
1 Reply

P: n/a
i have just found this trick

Jul 1 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.