我可以在ASP.NET中的ListBox中设置复选框 [英] Ho wcan i set checkbox in ListBox in ASP.NET
问题描述
大家好,
我的数据库中有竞争者列表,我想在列表框中显示它,让用户选择。我在asp.net中看到,它有CheckBoxList Control但是这个控件,我不能使用,因为它会增加我的web表单空间。我想创建一个列表框并将复选框放在其中,以便在我的Web表单上,它只需要小尺寸。当用户想要选择任何compititor时,他们可以向下滚动并选择。
有谁知道如何将复选框设置到列表框中?
谢谢
TONY
Hi all experts,
I have a list of competitor in my database and i want to display it on list box and let user to select. i see in asp.net,it has CheckBoxList Control but this control, i can''t use because it will increase my web form space. I want to create one listbox and put checkbox inside it so on my web form, it take small size only.and when the user want to select any compititor, they can scroll down and select.
Does anybody know how to set checkbox into listbox?
Thanks
TONY
推荐答案
此处 [ ^ ]是一个可以帮助您入门的视频。
这里有几篇方便的文章 -
http://www.heartysoft.com/Selecting-ListView-Items-with-CheckBoxes [ ^ ]
http://www.mindfiresolutions.com/Maintaining-the-state-of-checkboxes-in-ListView-208.php [ ^ ]
Here[^] is a video that could help you get started.
Here are a couple of handy articles -
http://www.heartysoft.com/Selecting-ListView-Items-with-CheckBoxes[^]
http://www.mindfiresolutions.com/Maintaining-the-state-of-checkboxes-in-ListView-208.php[^]
这篇关于我可以在ASP.NET中的ListBox中设置复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!