binding datatable to accordion control

Discussion in 'Microsoft C# .NET' started by David Lazos, Jul 1, 2008.

  1. David  Lazos

    David Lazos Guest

    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...
     
    David Lazos, Jul 1, 2008
    #1
    1. Advertisements

  2. David  Lazos

    David Lazos Guest

    David Lazos, Jul 1, 2008
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dextor
    Replies:
    0
    Views:
    265
    Dextor
    Sep 8, 2003
  2. Dunc

    partial datatable binding

    Dunc, Sep 27, 2003, in forum: Microsoft C# .NET
    Replies:
    0
    Views:
    181
  3. R Reyes
    Replies:
    14
    Views:
    1,146
    Scott Roberts
    Feb 5, 2008
  4. Wonko the Sane
    Replies:
    5
    Views:
    574
    Ken Foskey
    Jul 24, 2008
  5. CodeRazor

    AJAX accordion and control validation in each pane

    CodeRazor, Oct 30, 2008, in forum: Microsoft C# .NET
    Replies:
    0
    Views:
    454
    CodeRazor
    Oct 30, 2008
Loading...

Share This Page