Solved

how to create dropdownlist with checkbox in asp.net

Posted on 2013-10-29
9
654 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
Suggested Courses

628 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