Solved

ListBox with Checkbox in ASP.Net Webform

Posted on 2004-04-21
3
9,081 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 50 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

708 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

10 Experts available now in Live!

Get 1:1 Help Now