d developer

d developer

  • NA
  • 13
  • 4.2k

background color of table row

Jun 3 2015 1:28 PM
I created a html table rows and columns dynamically in c# and then appended to table in asp.net.
I have  5 rows and 4 columns in a table and an hyperlink in a cell4.
 
When I click each link which is in cell 4, it highlights that row, which is exactly I want but when I click row 2 hyperlink the first row backround color turns off and it shows just 2nd row highlighted.
I wanted to keep the rows highlighted when I click(cell 4 hyperlink) as many as rows i want. 
 
Is there any way to keep the tablerows highlighted dynamically in c#? 

Answers (6)