Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Connecting to AjaxToolkit:Accordion in CodeBehind

Connecting to AjaxToolkit:Accordion in CodeBehind

Scheduled Pinned Locked Moved Web Development
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saba02
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups