Solved

how to create dropdownlist with checkbox in asp.net

Posted on 2013-10-29
9
609 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 25

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
 
LVL 8

Expert Comment

by:johny_bravo1
ID: 39608617
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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 25

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now