ClientIds for individual CheckBoxes in a CheckBoxList

Discussion in 'ASP .Net Web Controls' started by Nathan Sokalski, Apr 3, 2009.

  1. I am generating JavaScript that needs to reference the checkboxes rendered
    by a CheckBoxList. How can i get the ClientIds for the checkboxes rendered
    by a CheckBoxList? Thanks.
    --
    Nathan Sokalski

    http://www.nathansokalski.com/
     
    Nathan Sokalski, Apr 3, 2009
    #1
    1. Advertising

  2. In your javascript, get the CheckBoxlist id by using
    document.getElementById() and then loop inside that control looking for
    input controls to get the child Checkbox id's

    Here is a blog post with example code describing how to acheive this:
    http://ctrlf5.net/?p=33
    Hope this helps.
    --

    Thank You,
    Nanda Lella,
    http://www.ctrlf5.net

    This Posting is provided "AS IS" with no warranties, and confers no rights.
     
    Nanda Lella[MSFT], Apr 29, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric Robishaw
    Replies:
    1
    Views:
    4,364
    Victor Garcia Aprea [MVP]
    Dec 27, 2003
  2. =?Utf-8?B?UnlhbiBTY3VsbHk=?=

    CheckBoxList Individual Item Detection

    =?Utf-8?B?UnlhbiBTY3VsbHk=?=, Jun 23, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,987
    avnrao
    Jun 23, 2004
  3. Ratman
    Replies:
    2
    Views:
    1,549
    Ratman
    Jul 4, 2004
  4. Nathan Sokalski
    Replies:
    2
    Views:
    461
    Nanda Lella[MSFT]
    Apr 23, 2009
  5. TS
    Replies:
    5
    Views:
    741
    Jeffrey Tan[MSFT]
    Aug 10, 2005
Loading...

Share This Page