开发者

How to make accordion get value from data base

开发者 https://www.devze.com 2023-01-13 15:07 出处:网络
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

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

精彩评论

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