Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to add checkbox inside ListBox in asp.net
kindly reply its urgent..
Posted
Updated 11-Apr-11 22:39pm
v2
Comments
Sunasara Imdadhusen 12-Apr-11 4:39am    
Don't use URGENT in your question!!
Sunasara Imdadhusen 12-Apr-11 4:42am    
You can not add checkbox in ListBox. but why you want to add?
Sandeep Mewara 12-Apr-11 8:46am    
Any effort?

1 solution

There is no CheckedListBox in ASP.net like there is in a WinForms project, but you could wrap a CheckBoxList inside a <div>, then set the height of the <div> to less than that of the CheckBoxList, then set the overflow of the <div> with CSS for a similar kind of thing.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.checkboxlist.aspx[^]

http://www.w3schools.com/Css/pr_pos_overflow.asp[^]
 
Share this answer
 
Comments
Manfred Rudolf Bihy 12-Apr-11 5:00am    
Sounds reasonable. My 5+

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900