Solved

how to create dropdownlist with checkbox in asp.net

Posted on 2013-10-29
9
627 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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

828 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