Hyperlink in a datagrid
I have a datagrid that is the result of a stored procedure. I have a field called Title that I want to make a hyperlink to execute another stored procedure that will retrieve all instances of that title. Selecting Edit Columns gives me several options, but I am not knowing how to proceed from there. Any help would be greatly appreciated.
Leave a comment...
- 2 Comments
you can do a <asp:linkbutton> with a commandName and commandArgument attributes. hook up the onItemCommand event and process it, something like
<asp:linkbutton id="title_link" Text="<%#Eval("Title")%>" commandName="GetTitle_Detail" commandArgument='<%#Eval("Title")%>' runat="server" />#1; Sun, 06 Jan 2008 05:12:00 GMT
- Awesome! Thank you very much Liming!#2; Sun, 06 Jan 2008 05:13:00 GMT