Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > ClientIds for individual CheckBoxes in a CheckBoxList

Reply
Thread Tools

ClientIds for individual CheckBoxes in a CheckBoxList

 
 
Nathan Sokalski
Guest
Posts: n/a
 
      04-03-2009
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/


 
Reply With Quote
 
 
 
 
Nanda Lella[MSFT]
Guest
Posts: n/a
 
      04-29-2009
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ClientIds for individual CheckBoxes in a CheckBoxList Nathan Sokalski ASP .Net 2 04-23-2009 01:48 AM
how do i get rid of border around individual checkbox in checkboxlist? TS ASP .Net Web Controls 5 08-10-2005 09:31 AM
CheckBoxList Individual Item Detection =?Utf-8?B?UnlhbiBTY3VsbHk=?= ASP .Net 1 06-23-2004 03:06 PM
CheckBoxList Individual Item Detection =?Utf-8?B?UnlhbiBTY3VsbHk=?= ASP .Net 0 06-23-2004 02:30 PM
Change forecolor for individual listitems in CheckBoxList Eric Robishaw ASP .Net 1 12-27-2003 07:50 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57