How to select row in Repeater when user clicks in any cell?

  • Thread starter Thread starter Stefan
  • Start date Start date
S

Stefan

Hi,
I've got a repeater control, that has a checkbox in the first column, and
then a couple of columns with data after that.
What i want to achieve, is that the checkbox in the first column gets
selected if the user clicks in any cell in that row, WITHOUT a postback! Just
like if he clicked directly in the checkbox.

Any ideas on how to do this? Any links maybe? (If possible without ajax, but
if only possible with ajax i'm interested in suggestions as well. )

Thanks
 
simple. on <tr> just add a little javascript:

<tr onclick="this.getElementsByTagName('input')[0].checked=true;">

-- bruce (sqlwork.com)
 
Back
Top