Results 1 to 4 of 4

Thread: CheckBox array

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    5

    CheckBox array

    Dear all,

    i want to make about 100 checkbox in the aspx page. so, how can i check which checkbox is checked? i think it is impossible to use

    if checkbox1.checked = True .........

    Please Help, Thanks!!

  2. #2
    Addicted Member
    Join Date
    Aug 2004
    Location
    Cape Town, South Africa
    Posts
    149

    Re: CheckBox array

    Use a checkbox list and loop through each one checking if it is checked or not...

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    5

    Re: CheckBox array

    Thanks for answering, Patch21
    But how do i solve the problems if i must need to use CheckBox.

  4. #4
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: CheckBox array

    It is possible to loop through the controls collection for the page looking for all CheckBoxes but to be honest using a CheckBoxList is a better idea - why can't you use it?

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width