Solved

ASP.net DropDownList with CheckBoxes

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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