in the below code, there is a image present on second column,if i click on second column i wan to read the data present in first column.
suppose i have 10 rows, if user click on 5 row icon, then i want to read all the details associated with 5th row.
<table class="tableStyle" id="Table1">
<thead>
<tr>
<th id="Th1" style="background: none repeat-x scroll center top #027DBA;border-left: 1px solid #525252;width:15px;font-weight:bold">
<div>Request ID</div>
</th>
<th id="Th2" style="background: none repeat-x scroll center top #027DBA;border-left: 1px solid #525252;width:15px;font-weight:bold">Request Name
</th>
</tr>
</thead>
<%
for (int i = 0; i < ViewData.Model.Details.Count; i++)
{
//String id = i.ToString();
%>
<tr>
<td headers="Th1" style="background-color:#EFF3FB;border: 1px solid #C1C1C1;color: #000000; text-align:center"><%= ViewData.Model.Details.ElementAt(i).ID%>
</td>
<td headers="Th2" style="background-color:#EFF3FB;border: 1px solid #C1C1C1;color: #000000; text-align:center">
<a href="#"><img style="border:0;" src="/Content/Images/Icon.png" alt="Name" width="20" height="20" /></a>
</td>
</tr>
<%}
%>
</table>