Solved

ASP.net DropDownList with CheckBoxes

Posted on 2012-03-22
2
359 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:murbro
2 Comments
 
LVL 9

Accepted Solution

by:
joshbula earned 500 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:murbro
ID: 37763062
thanks for the help
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

776 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