agnihothri dayal via .NET 247 wrote:
hi all,
i have a doubt.
i am a new bie in asp.net.
i want to add multiple number of checkboxes in a list box.any body can throw some light into this problem, any hlp using code/some resources will be greatly appreaciated,
thnx in advance,
Agni.
From: agnihothri dayal
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>tZlipB1mxE+lCkbwaP7SiA==</Id>
An HTML listbox does not allow checkboxes, but you can fake it (sort of)
- this is from memory, so forgive me if it's not 100% correct:
<div id="checkedListBox" style="overflow:auto;width:200px;height:400px">
<input type="checkbox" name="checkOption1" /><label
for="checkOption1">Option 1</label><br />
<input type="checkbox" name="checkOption2" /><label
for="checkOption2">Option 2</label><br />
...
<input type="checkbox" name="checkOption9" /><label
for="checkOption9">Option 9</label><br />
</div>
Hope this helps
--
Ed Courtenay
[MCP, MCSD]
http://www.edcourtenay.co.uk