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:Accordio n ID="Accordion1 " runat="server" FadeTransitions ="True"
SelectedIndex=" 0" TransitionDurat ion="300" HeaderCssClass= "accordionHeade r"
ContentCssClass ="accordionCont ent">
<Panes>
</Panes>
<HeaderTemplate >
<a href="" onclick="return false;"><%# Eval("HEADER")% ></a>
</HeaderTemplate>
<ContentTemplat e>
<%# Eval("CONTENT") %>
</ContentTemplate >
</cc1:Accordion>
*************** *
and i bind it on page_load event of aspx.cs
*************** *
protected void Page_Load(objec t sender, EventArgs e)
{
Accordion1.Data Source = for_using.getIn fo(); //it returns a DataTable
Accordion1.Data Bind();
}
*************** **
am i doing something wrong ?
Thanks...
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:Accordio n ID="Accordion1 " runat="server" FadeTransitions ="True"
SelectedIndex=" 0" TransitionDurat ion="300" HeaderCssClass= "accordionHeade r"
ContentCssClass ="accordionCont ent">
<Panes>
</Panes>
<HeaderTemplate >
<a href="" onclick="return false;"><%# Eval("HEADER")% ></a>
</HeaderTemplate>
<ContentTemplat e>
<%# Eval("CONTENT") %>
</ContentTemplate >
</cc1:Accordion>
*************** *
and i bind it on page_load event of aspx.cs
*************** *
protected void Page_Load(objec t sender, EventArgs e)
{
Accordion1.Data Source = for_using.getIn fo(); //it returns a DataTable
Accordion1.Data Bind();
}
*************** **
am i doing something wrong ?
Thanks...
Comment