HTML
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
<link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css"
rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function () {
$("#dvAccordian").accordion();
});
</script>
<div id="dvAccordian" style = "width:400px">
<asp:Repeater ID="rptAccordian" runat="server">
<ItemTemplate>
<h3>
<%# Eval("Title") %></h3>
<div>
<p>
<%# Eval("Content") %>
</p>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
Code
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
DataTable dt = new DataTable();
dt.Columns.AddRange(new DataColumn[2] { new DataColumn("Title"), new DataColumn("Content") });
dt.Rows.Add("Section 1", "This is content of Section 1");
dt.Rows.Add("Section 2", "This is content of Section 2");
dt.Rows.Add("Section 3", "This is content of Section 3");
dt.Rows.Add("Section 4", "This is content of Section 4");
rptAccordian.DataSource = dt;
rptAccordian.DataBind();
}
}