具有多个Itemtemplate的中继器 [英] Repeater with multiple Itemtemplate

查看:331
本文介绍了具有多个Itemtemplate的中继器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何制作具有多个Itemtemplates的Repeater?然后选择一个模板基于某种条件?

How can I make a Repeater with multiple Itemtemplates ? And a template is choosed based on some condition ?

推荐答案

在中继器中可以有嵌套的中继器:

You could have a nested repeater in your repeater:

http://www.worldofasp.net/tut/NestedRepeater/Repeater_within_Repeater_193.aspx

但是,这开始变得非常棘手!我会看一下您要达到的目标,并评估这是否是最佳选择.

But this starts getting really tricky! I'd take a look at what you are trying to achieve and evaluate if this is the best option.

这篇关于具有多个Itemtemplate的中继器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆