Solved

how to create dropdownlist with checkbox in asp.net

Posted on 2013-10-29
9
635 Views
Last Modified: 2013-11-08
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.
0
Comment
Question by:sam_net
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 26

Expert Comment

by:Shaun Kline
ID: 39608537
ASP.Net comes with a checkboxlist control.
0
 

Author Comment

by:sam_net
ID: 39608555
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
 
LVL 8

Expert Comment

by:5teveo
ID: 39608556
under Common tools (see enclosed) image
EECheckListboxImage.png
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Expert Comment

by:johny_bravo1
ID: 39608617
0
 

Author Comment

by:sam_net
ID: 39608643
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
 
LVL 8

Expert Comment

by:johny_bravo1
ID: 39608666
0
 
LVL 8

Expert Comment

by:johny_bravo1
ID: 39608679
I still think Jquery is better option, it will work for any version of VS.

https://code.google.com/p/dropdown-check-list/
0
 
LVL 26

Accepted Solution

by:
Shaun Kline earned 500 total points
ID: 39608813
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
 

Author Closing Comment

by:sam_net
ID: 39633210
Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question