I've got a webapp that displays data in a GrdiView and one of the columns I need to have a link displayed for the user to click on, which I've got just fine:
but when this link is clicked I need it to run a subroutine in the code behind file, similar to handling an asp:ComboBox's SelectedIndexChanged event. How do I do this? I'll also need to pass the <%#DataBinder.Eval(Container, "DataItem.FILENAME")%> value to the routine somehow too. Any ideas?
Edit: Would an asp:LinkLabel be of use?
VB.NET:
<a href="#" runat="server"><%#DataBinder.Eval(Container, "DataItem.FILENAME")%></a>
Edit: Would an asp:LinkLabel be of use?