How do I get the ID or reference of the listview row I am clicking a checkbox in?

Posted by danielea on Stack Overflow See other posts from Stack Overflow or by danielea
Published on 2010-04-12T19:13:22Z Indexed on 2010/04/13 21:43 UTC
Read the original article Hit count: 323

Filed under:
|

I have an ASP.NET 2.0 ListView control (aka:parent) and configured inside this ListView I have another ListView (aka:child). For each row the parent has there is potentially a child ListView control which can have 1-3 rows. Each row has two checkboxes (a select checkbox and a deny checkbox).

I need to process these checkboxes in JavaScript so that if one select is chosen on any of the rows all other select checkboxes are unchecked AND the deny checkbox for that row only is unchecked. The rows which were NOT selected CAN have the deny checkboxes checked.

What is the best approach to this?

© Stack Overflow or respective owner

Related posts about listview

Related posts about JavaScript