PC Review


Reply
Thread Tools Rate Thread

binding datatable to accordion control

 
 
David Lazos
Guest
Posts: n/a
 
      1st Jul 2008
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...


 
Reply With Quote
 
 
 
 
David Lazos
Guest
Posts: n/a
 
      1st Jul 2008
i have just found this trick
http://www.codeplex.com/AjaxControlT...rkItemId=10472



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WPF: Binding Control (Non-List) to Specific DataTable Row and Colu Wonko the Sane Microsoft C# .NET 5 24th Jul 2008 12:21 PM
binding datatable to accordion control David Lazos Microsoft ASP .NET 1 1st Jul 2008 10:25 AM
Accordion Control Mike Collins Microsoft ASP .NET 0 7th Mar 2008 01:37 AM
Can you use an Accordion control in a masterpage? =?Utf-8?B?TmF0ZQ==?= Microsoft ASP .NET 3 13th Sep 2007 03:36 PM
Sorting a DataTable without binding it to a data control Mark Rae Microsoft ADO .NET 2 8th Dec 2005 01:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:53 AM.