开发者

Creating a nested ListView in ASP.Net

开发者 https://www.devze.com 2022-12-15 20:02 出处:网络
I have a ListView that will represent a menu with sub menus which in turn will have theirs, etc. The menus will be generated from a database table that has a recursiv开发者_运维百科e relationship.

I have a ListView that will represent a menu with sub menus which in turn will have theirs, etc. The menus will be generated from a database table that has a recursiv开发者_运维百科e relationship.

How do I bind the IEnumerable that I retrieve from the database, so that the listview generates other listviews within itself to represent the sub menus ?

Also, what should I add to the template to make it 'display itself' in a child?

0

精彩评论

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