Table row onclick event that runs codebehind
I've inherited an ASP.NET project that has poorly designed HTML; in one section, the tags are wrapped with an tag to allow for "click the row to view the information" functionality. The code is: <asp:LinkButton ID="ViewArticle" runat="server" CommandName="Navigate" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "id") %>' > <tr runat="server" class="list_item"> <td>some data</td> <td>some data</td> <td>some data</td> </tr> </asp:LinkButton> I'd like to do something like: <tr runat="server" class="list_item" onclick="doRowPostbackFunction('<%# DataBinder.Eval(Container.DataItem, "id")