how to create dropdownlist with checkbox in asp.net

I am doing data binding to a dropdown and I want to allow multiple selection using a check box in side the drop down.
So how to create dropdown list with checkbox.
Thanks.
sam_netAsked:
Who is Participating?
 
Shaun KlineLead Software EngineerCommented:
A drop-down list control allowing checkboxes and multiple selections goes against what a drop-down list control is for: Single selection from multiple options.

What you are looking for is a listbox with checkboxes, which is what the Checkboxlist control is.

The CheckBoxList control has been part of the .NET Framework since version 1.1. The following link comes straight from Microsoft and provides information about the control in Visual Studio 2008: http://msdn.microsoft.com/en-us/library/2tkec5c4(v=vs.90).aspx.
0
 
Shaun KlineLead Software EngineerCommented:
ASP.Net comes with a checkboxlist control.
0
 
sam_netAuthor Commented:
Thanks for your quick response...

But I am developing the application using asp.net 2008. In this version of VS no such control is available.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
5teveoCommented:
under Common tools (see enclosed) image
EECheckListboxImage.png
0
 
sam_netAuthor Commented:
Hi All,

Thanks for your replies...

But I am developing the application using asp.net 2008....

could please provide an example using this version of VS.

Thanks...
0
 
Johny BravoCommented:
I still think Jquery is better option, it will work for any version of VS.

https://code.google.com/p/dropdown-check-list/
0
 
sam_netAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.