ASP.net 停止转发器
我有一系列嵌套的中继器;对于本示例,假设 3。我使用 ItemDataBound 事件绑定内部中继器。
我希望 2 个外部中继器显示其指定的中继器内容。然后,如果有可以重复的数据,我希望第三个也是最里面的中继器简单地输出一些消息。
所以重申一下:我想要两个中继器重复,第三个中继器告诉我是否有东西要重复。
如果标签或其他元素更好地完成了我想做的事情,我实际上不需要在最里面使用中继器。
I have a series of nested repeaters; for this example, assume 3. I'm binding the inner repeaters using the ItemDataBound event.
I want the 2 outside repeaters to display their assigned repeater stuff. Then I want the 3rd and inner most repeater to simply output some message if there is data that COULD be repeated.
So to reiterate: I want two repeaters to repeat, and the third to tell me if there is stuff to repeat.
I do no not need to actually use a repeater for the inner most, if a label or some other element better accomplishes what I'm trying to do excellent.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
那么,在第二个中继器的 ItemDataBound 上,您通常会将数据分配给第三个中继器,您是否可以不只是查看数据,确定它是否有超过 1 条记录,并适当地设置标签?
So, on the ItemDataBound of the 2nd repeater, where you would normally assigned data to the 3rd repeater, can you not just look at the data, decide if it has more than 1 record, and set a label appropriately?