Solved

ASP.net DropDownList with CheckBoxes

Posted on 2012-03-22
2
360 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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