首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

,如何动态显示Repeater里面Linbutton的值

2013-04-20 
求助,怎么动态显示Repeater里面Linbutton的值。我在Repeater里面放了Linbutton按钮。然后我用select count(*

求助,怎么动态显示Repeater里面Linbutton的值。
我在Repeater里面放了Linbutton按钮。然后我用select count(*)....语句来计数;

得到几就让Linbutton显示几。

在 protected void Repeater1_ItemCommand(object sender, RepeaterCommandEventArgs e) 里面写的代码

把计数得到的数赋给Linbutton的TEXT

可是每次都要点击一下Linbutton按钮,Linbutton的TEXT才改变,有什么办法一打开页面Linbutton的TEXT的内容就会改变的??? Repeater
[解决办法]
用Item_DataBound事件,在数据绑定事件中初始化数据

热点排行