Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
GeneralValue of checked checkboxes in a form Pin
Het21097-Jan-08 8:31
Het21097-Jan-08 8:31 
GeneralRe: Value of checked checkboxes in a form Pin
PIEBALDconsult7-Jan-08 9:22
mvePIEBALDconsult7-Jan-08 9:22 
GeneralRe: Value of checked checkboxes in a form Pin
Het21097-Jan-08 9:25
Het21097-Jan-08 9:25 
GeneralRe: Value of checked checkboxes in a form Pin
Christian Graus7-Jan-08 9:33
protectorChristian Graus7-Jan-08 9:33 
GeneralRe: Value of checked checkboxes in a form Pin
PIEBALDconsult7-Jan-08 10:17
mvePIEBALDconsult7-Jan-08 10:17 
GeneralRe: Value of checked checkboxes in a form Pin
Paul Conrad7-Jan-08 12:43
professionalPaul Conrad7-Jan-08 12:43 
GeneralRe: Value of checked checkboxes in a form Pin
Paul Conrad7-Jan-08 12:40
professionalPaul Conrad7-Jan-08 12:40 
GeneralYes Pin
Ennis Ray Lynch, Jr.7-Jan-08 16:28
Ennis Ray Lynch, Jr.7-Jan-08 16:28 
Add an event to the CheckChanged event. In that code you can use code to populate a list. The one line of code would be:

someMemberList.Add((CheckBox)sender);

In the event.

The easiest method, however, is just the if statements. You mentioned a loop so maybe this is ASP.NET so there is a complicated simple way to do it by getting the submitted value by the id of the check box so long as every check box has the same id.

Need a C# Consultant? I'm available.


Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway


GeneralRe: Yes Pin
ChandraRam8-Jan-08 0:35
ChandraRam8-Jan-08 0:35 
GeneralRe: Yes Pin
Ennis Ray Lynch, Jr.8-Jan-08 5:45
Ennis Ray Lynch, Jr.8-Jan-08 5:45 
QuestionData wipe algorithms Pin
Johan Martensson7-Jan-08 8:24
Johan Martensson7-Jan-08 8:24 
GeneralRe: Data wipe algorithms Pin
Ed.Poore7-Jan-08 8:50
Ed.Poore7-Jan-08 8:50 
GeneralRe: Data wipe algorithms Pin
Johan Martensson7-Jan-08 9:28
Johan Martensson7-Jan-08 9:28 
GeneralRe: Data wipe algorithms Pin
Ed.Poore7-Jan-08 10:09
Ed.Poore7-Jan-08 10:09 
GeneralRe: Data wipe algorithms Pin
PIEBALDconsult7-Jan-08 10:21
mvePIEBALDconsult7-Jan-08 10:21 
GeneralRe: Data wipe algorithms Pin
Ed.Poore7-Jan-08 10:57
Ed.Poore7-Jan-08 10:57 
GeneralRe: Data wipe algorithms Pin
PIEBALDconsult7-Jan-08 11:17
mvePIEBALDconsult7-Jan-08 11:17 
GeneralRe: Data wipe algorithms Pin
Pete O'Hanlon7-Jan-08 11:30
mvePete O'Hanlon7-Jan-08 11:30 
GeneralRe: Data wipe algorithms Pin
Ed.Poore7-Jan-08 12:40
Ed.Poore7-Jan-08 12:40 
GeneralRe: Data wipe algorithms [modified] Pin
PIEBALDconsult7-Jan-08 9:28
mvePIEBALDconsult7-Jan-08 9:28 
GeneralRe: Data wipe algorithms Pin
Luc Pattyn7-Jan-08 15:10
sitebuilderLuc Pattyn7-Jan-08 15:10 
GeneralRe: Data wipe algorithms Pin
PIEBALDconsult7-Jan-08 15:53
mvePIEBALDconsult7-Jan-08 15:53 
GeneralRe: Data wipe algorithms Pin
Johan Martensson7-Jan-08 21:13
Johan Martensson7-Jan-08 21:13 
GeneralRe: Data wipe algorithms Pin
Ennis Ray Lynch, Jr.7-Jan-08 16:33
Ennis Ray Lynch, Jr.7-Jan-08 16:33 
GeneralRe: Data wipe algorithms Pin
PIEBALDconsult8-Jan-08 12:59
mvePIEBALDconsult8-Jan-08 12:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.