Connecting to AjaxToolkit:Accordion in CodeBehind
Web Development
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, I want to use Ajaxtoolkit:Accordion for listing some title and some content. My code is here in aspx :
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ArticleConnectionString %>"
SelectCommand="SELECT [Title], [Abstract] FROM [Articles]">
</asp:SqlDataSource><asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <ajaxToolkit:Accordion ID="acc1" runat="server" DataSourceID="SqlDataSource1" > <HeaderTemplate>
<a href="" onclick="return false"><%#DataBinder.Eval(Container.DataItem, "Title")%> </a>
</HeaderTemplate>
<ContentTemplate>
<%#DataBinder.Eval(Container.DataItem, "Abstract")%>
</ContentTemplate>
</ajaxToolkit:Accordion>But i want to do this work via DataSet. How i can do this in CodeBehind using DataSet? I really need your help, Thank You.
Hoda