开发者

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>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜