?
Solved

ASP.net DropDownList with CheckBoxes

Posted on 2012-03-22
2
Medium Priority
?
363 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

801 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