Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ASP.net DropDownList with CheckBoxes

Posted on 2012-03-22
2
Medium Priority
?
364 Views
Last Modified: 2012-03-25
Hi

I need ti simulate what I am doing on a VB.net Windows form with a ComboBox as per the code below in ASP.net with a DropDownList. Firstly, how would I ensure that the DropDownList has CheckBoxes and secondly what code would I use to do what the following code is doing, Thanks:

        Do While dr.Read
            cboProductList.CheckedListBox1.Items.Add(dr.GetString(0))
        Loop
        cboProductList.CheckedListBox1.Height = cboProductList.CheckedListBox1.PreferredHeight
        cboProductList.ChangeCheckState(True)

        dr.NextResult()
0
Comment
Question by:Murray Brown
[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
2 Comments
 
LVL 9

Accepted Solution

by:
joshbula earned 2000 total points
ID: 37753235
You might be able to get similar functionality with the AJAX Control Toolkit's PopUpControl.  Just put a CheckBoxList in the PopUpControl.

http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/PopupControl/PopupControl.aspx
0
 

Author Closing Comment

by:Murray Brown
ID: 37763062
thanks for the help
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

604 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