简体   繁体   English

ASP.NET中的多行列表框

[英]Multiline listbox in asp.net

The title kind of says it all, I want items in a listbox to be able to fill several lines. 标题说明了一切,我希望列表框中的项目能够填充几行。 I haven't been able to find anything that can do this for asp.net. 我还没有找到任何可以为asp.net做到这一点的东西。 Yes, I know listbox wasn't made for multilines.. 是的,我知道列表框不是用于多行的。

Or is there a better tool for this? 还是为此有更好的工具? The reason why I would like it to be a listbox is because I am using Jscript, and I couldn't find any solution on how to add items to a Listview through Javascript. 我之所以希望它成为一个列表框,是因为我使用的是Jscript,但是找不到如何通过Javascript将项目添加到Listview的任何解决方案。

Listbox items aren't meant to contain several lines. 列表框项目并不意味着要包含多行。 Instead I constructed a table and styled it so it looked lkie one. 相反,我构造了一张桌子并设置了样式,使其看起来有点像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM