开发者

How can i display total number of records in repeator, asp.net...?

开发者 https://www.devze.com 2023-03-15 19:55 出处:网络
I am using Repeater in asp.net, i want to display total number of records. I have used Repeator1.Items.Count in databound, but its problem is, if some one submits button then as repeater loads just on

I am using Repeater in asp.net, i want to display total number of records. I have used Repeator1.Items.Count in databound, but its problem is, if some one submits button then as repeater loads just once and reloads 开发者_高级运维only on change in its items, so my total items remain there, even if there is no record in search, but when repeater loads with some different result then again total items appear. Please let me know the solution.

Thanks Atif


Try to call the Control.DataBind method before you get the item count

0

精彩评论

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