动态创建数据列表 [英] Dynamic creation of Datalist

查看:124
本文介绍了动态创建数据列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要在数据列表中显示成员列表.我需要在其下面显示名称作为标题和照片.我需要动态创建数据列表并将其绑定到数据.任何人都可以帮我提供示例代码

Hi,

I need to display List of Members in a datalist.I need to display Name as header and photo below that.I need to create datalist dynamically and bind data to it.Can anyone please help me with the sample code

推荐答案

如果要在作用域中有成员列表,为什么要动态创建?如果为数据列表定义项目模板然后绑定它,我会遇到什么问题?您的确切要求是什么?
Why you want to create dynamically if you have members list in scope?I eman whats the problem if you define item template for data list and then bind it?Whats your exact requirement?


这篇关于动态创建数据列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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