在列表框中选择多个项目,而不必按CTRL键,并且在文本框中显示所选项目的文本 [英] select multiple items in listbox without having to press CTRL and selected items text display in textbox

查看:52
本文介绍了在列表框中选择多个项目,而不必按CTRL键,并且在文本框中显示所选项目的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个将选择模式设置为多个的列表框.但是用户希望能够选择多个项目而不必按CTRL.并且我希望将选择的项目显示在文本框控件中...

有人知道这样做的简单方法吗?



在此先感谢...

I have a ListBox with selection mode set to multiple. but the user wants to be able to select multiple items without having to press CTRL.And I want to display selected items into a textbox control...

Does anyone know an easy way to do this?



Thanks in advance...

推荐答案



检查这些链接.

在列表框中启用多个选择,而无需按ctrl键 [列表框中没有Ctrl键的多个选择 [在列表框中选择多个而不使用ctrl键
[在功能上选择多个项目,而无需在列表视图控件中按CTRL或SHIFT键 [ ^ ]

希望对您有帮助


check these links.

Enbale multiple selections in Listbox without pressing ctrl key[^]
Multiple selection in listbox without Ctrl key[^]
multiple selection in listbox without using ctrl key
[^]
Select Multiple Items Functionally Without Pressing the CTRL or SHIFT Key in a List View Control[^]

hope it helps


使用CheckBoxList
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.checkboxlist.aspx [ ^ ]

还有更多的下拉菜单和复选框:
将ASP.NET控件复选框列表转换为下拉列表复选框列表 [ ^ ]
Use a CheckBoxList
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.checkboxlist.aspx[^]

Also more of a dropdown and checkbox :
Converting ASP.NET Control Check Box List into Drop-Down Check Box List[^]


这篇关于在列表框中选择多个项目,而不必按CTRL键,并且在文本框中显示所选项目的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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