<asp:TemplateField HeaderText = "Edit"> <ItemTemplate> <asp:LinkButton ID="Edit" runat="server" CommandName="Add" >"Edit"</asp:LinkButton> <ItemTemplate>
CommandArgument='<%# Bind("VersionID") %>
protected void gridView_RowCommand(Object sender, GridViewCommandEventArgs e) { if( e.CommandName == "Add") { Response.Redirect("/your page.aspx?VersionID=" + e.CommandArgument.ToString()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)