Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ListBox with Checkbox in ASP.Net Webform

Posted on 2004-04-21
3
Medium Priority
?
9,092 Views
Last Modified: 2012-05-04
Can anyone let me know how to create a Multiple Select Listbox Control to a ASP.Net Webform, which has two columns, one containing Checkbox and the other column containing any Text item (may be from a datasource). User shall be able to select the checkbox in order to select an item in the List box.
0
Comment
Question by:paragdighe
3 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 10883231
A browser cannot render that.  Nothing can be in a select except options, and nothing can be inside options. There is no way to create a functional select with those requirements.

Cd&
0
 
LVL 35

Accepted Solution

by:
mrichmon earned 150 total points
ID: 10884049
The only thing I can think of is to simulate this behavior in Flash.

Of course if you are having them check the checkbox to select the item then what is the point of enclosing it in a drop down menu?  Why not just list the checkboxes and if you have a limited space then use a frame which can scroll.
0
 

Author Comment

by:paragdighe
ID: 10900452
Though solution from mrichmon is acceptable and even COBOLdinosaur is right about the List Box with check box control,  but for others here is what I did: Create a Data Grid with one column containing a check box and the other the Text. The Datagrid made scrollable. This will be a close simulation of a List Box control with Check Box.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

886 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