Hi Guys,
i have a problem where i need to pass the values of a table tr click to a function in javascript. My issue lies in the fact that i can't pass the id of the <TR>, as this is being created by a repeater control (asp)automatically and thus when this id created is larger then what is really being displayed on the html page i will have problems. What i'm looking after is something like the higlighted below?? or else a way how the repeater i'm using generates incremental id's and not at random!!!(but that's a question for the asp forum i guess) !!!
<tr id="li<%# ((RepeaterItem)Container).ItemIndex + 1%>" onclick="test(getName,getSurname,getAddress,getDOB,etc)">
<td><%# Eval("name") %></td>
<td><%# Eval("surname") %></td>
<td><%# Eval("address")%></td>
<td><%# Eval("dob") %></td>
<td><%# Eval("guard1") %></td>
<td><%# Eval("classe") %></td>
</tr>
Thanks guys ......
get table tr data onlick
Page 1 of 11 Replies - 408 Views - Last Post: 25 December 2012 - 04:55 AM
Replies To: get table tr data onlick
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|