Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I create dynamically Html table using asp.net with c# code, now problem is how to get cell value on click the one cell.
Posted
Comments
Matej Hlatky 28-Feb-13 5:05am    
What have you tried so far?
Are you using jQuery or some else JS framework?
Babu Kumar 28-Feb-13 5:51am    
Hi,
Can you post your sample code, so that we can understand how u created table and how we can get data from the table.

Regards,
Babu.K
saud_a_k 28-Feb-13 5:57am    
call a javascript function on click
like
<td önclick = CellClick(this)>11</td>
and js
function CellClick(cell)
{
alert(cell.innerHTML);
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900