473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

checkbox in side a list box

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>
Nov 16 '05 #1
3 8348
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
Nov 16 '05 #2
Ed Courtenay wrote:
agnihothri dayal via .NET 247 wrote:
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,


Hope this helps


Alternatively you have the CheckListbox web control available.

--
Thomas Due
Posted with XanaNews 1.16.3.1
Nov 16 '05 #3
Thomas Due wrote:
Ed Courtenay wrote:

agnihothri dayal via .NET 247 wrote:

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,


Hope this helps

Alternatively you have the CheckListbox web control available.


Doh! I completely forgot about that control!

--

Ed Courtenay
[MCP, MCSD]
http://www.edcourtenay.co.uk
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Rodney King | last post by:
Hi, I have developed an ASP page which dynamically displays a list of checkbox options based on a SQL statement. Here is my code: <div style="OVERFLOW:auto; Height: 150px"> <table> <% dim...
2
by: Menelty | last post by:
I have 2 datagrids on my page and each one has a template column which has a checkbox relating to each specific row. I usually have one on the page and use javascript to make sure there has been x...
3
by: SStory | last post by:
Is there no way to require a checkbox to be checked in ASP.NET? The requiredvalidator control doesn't work for it--should I make a server--roundtrip for that and check during the btn_click event? ...
1
by: segue | last post by:
I'm dynamically creating/populating a checkbox list and adding it to a web form. I want to when checking an item in the list have the autopostback retrieve the selected item. I'm dynamically...
4
by: | last post by:
I have a checkbox on a web page. When it is checked, I want a Table to appear (or disappear when the checkbox is cleared)... I was hoping to use client side code for this, so I created a short...
29
by: Amer Neely | last post by:
I've got a dynamically built form with checkboxes for each element ( a list of file names in a directory). I need to grab only those checkboxes that are checked, so I can then delete those files. ...
0
by: cvijaykrishna | last post by:
i am having a web based application and i am having a problem with it pls check it Explanationi am sending a sample code plese see it in VS-2005 FOR BETTER UNFERSTANDING I have a main page...
8
by: Grorange | last post by:
Writing ASP.NET pages, I have a need for client-side functions to prevent going to the server for every small change. I have a list of server side created checkboxes filled with a lot of...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a VS 2008 ASP.NET webform that has a reportview tag on it, accessing an .RLDC report in local report. The columns for the report are essentially: Month Item #1 Item#2 Item#3 ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.