简体   繁体   English

如何处理多选ListBox? ASP.NET C#

[英]How to handle with multiple selection ListBox? asp.net c#

In my aspx registration page i have more then 6 item available in my list box, I am allowing multiple selection on it..I am not sure about how many items i will select each and every time. 在我的aspx注册页面上,我的列表框中有6个以上的项目,我可以在上面进行多项选择。.我不确定每次都会选择多少个项目。 then how i have to store it into dataset and how to pass it as a mysql paramter... 然后我如何将其存储到数据集中以及如何将其作为mysql参数传递...

See ListBox.SelectionMode property. 请参见ListBox.SelectionMode属性。 Loop through the selected items to add into your datasource. 循环浏览所选项目以添加到您的数据源中。

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

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