Solved

ListBox with Checkbox in ASP.Net Webform

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

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

Suggested Solutions

Title # Comments Views Activity
Visual Studio Web Development - HTML 7 73
Blue Coat API portal URL 2 176
Dreamweaver server behavior gone 6 147
Dreamweaver code color same as CS6 or CS2015 2 12
Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
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 properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

860 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