Without using jQuery, assuming you're in a foreach loop like something below, just change the tr
definition to be something like:
@foreach (var user in Model.Users)
{
<tr onclick="location.href = '@(Url.Action("ShowProfile", "Users", new { userId = user.UserId }))'">
//rest of your markup for that table row
</tr>
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…