I always work with a repeater, for the hover effect on the repeater I use jQuery
This happens between tags.
$(document).ready(function() {
$(".tr-base").mouseover(function() {
$(this).toggleClass("trHover");
}).mouseout(function() {
$(this).removeClass("trHover");
});
});
and this is the css class.
.trHover{background-color: #D5E5ED;}
If you don't do anything on the server side when you click a line, you can use jQuery again for the selected effect.
source
share