ASP.net 停止转发器

发布于 2024-09-15 21:25:15 字数 223 浏览 1 评论 0原文

我有一系列嵌套的中继器;对于本示例,假设 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

握住我的手 2024-09-22 21:25:15

那么,在第二个中继器的 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文