How to make accordion get value from data base
I had Accordion (Ajax Control) and I did it to get value from data base I did my code but it didnot get any value please any one help me
开发者_C百科 ' Width="178" Height="115" Style="float: left; padding: 10px 10px 0 10px" />'>
Heading '>.
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt = myData.Tables["News"];
Accordion1.DataSource = dt.DefaultView; Accordion1.DataBind(); }
<cc1:accordion id="Accordion1" runat="server" selectedindex="0" fadetransitions="false" framespersecond="40" transitionduration="250" autosize="None"> <headertemplate> <%# Eval("NewsCaption") %> <%# Eval("NewsDate") %> </headertemplate> <contenttemplate> <%# Eval("NewsBody") %> </contenttemplate>
精彩评论