ASP.NET VB 嵌套列表视图并排出现
我目前有一个父列表视图及其子列表视图显示在 HTML 页面的中心列中,该页面由左、中、右三列组成。一切看起来都很好。 但是,我想在父列表视图旁边的右列中显示子列表视图。
要做到这一点,我似乎必须以某种方式从代码隐藏页面在每次父列表视图显示其数据记录和一些列 HTML 时在表中生成一个新行,以便第一个子列表视图将出现在右侧列中。
如果有人可以指导这是否是最好的方法以及如何做到这一点,我们将不胜感激。
I currently have a parent Listview and its child Listview displaying in the centre column of an HTML page that consists of three columns left, centre and right. And all looks very good.
However I would like to display the child list view in the right column beside the parent list view.
To do this it seems I must somehow generate from the code behind page a new row in the table every time the parent Listview displays a record of its data and then some column HTML so the first child list view will appear in the right hand column.
If anyone can guide if this is the best approach and how to do it, it would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我感到相当惊讶的是,您在这个月内没有收到对此问题的答复,而且自从您发布该问题以来,情况发生了一些变化。
我的建议是使用 updatepanel (Ajax) 并做您认为应该做的事情:当在父列表视图中选择一个项目时,动态加载第二个列表视图。
只是一个建议。
I'm rather surprised that you haven't gotten a response to this question in the month and some change that it's been since you posted it.
My suggestion would be to use an updatepanel (Ajax) and do just what you thought you should: When an item is selected in the parent listview, dynamically load the second listview.
Just a suggestion.