[Csharp] <asp: templateField HeaderText = "Operation" ShowHeader = "False"> <ItemStyle Width = "100px"/> <ItemTemplate> <table width = "100%"> <tr> <td align =" center "valign =" middle "> <asp: imageButton ID = "imgUpdate" CommandName = "update" ToolTip = "Update" ImageUrl = "~ /App_Themes/Images/edit.png "runat =" server "/> <% -- <a href =" ApplicationDetail. aspx? Type = update & ApplicationID = <% # Eval ("ApplicationID") %> "> </a> -- %> </td> <td align =" center "valign =" middle "> <asp: imageButton ID = "imgDelete" CommandName = "delete" ToolTip = "Delete" ImageUrl = "~ /App_Themes/Images/del.png "runat =" server "/> </td> </tr> </table> </ItemTemplate> </asp: templateField> [csharp] <asp: TemplateField HeaderText = "View"> <ItemTemplate> <a href = "DraftVesselOrderDetail. aspx? ServiceID = <% # Eval ("Number") %> & TripSelectedIndex = <% # Container. dataItemIndex %> "> </a> </ItemTemplate> </asp: TemplateField> Code: [csharp] protected void gdvOrderList_RowCommand (object sender, GridViewCommandEventArgs e) {switch (e. commandName. toLower () {case "view": var serviceId = long. parse (e. commandArgument. toStrin G (); Response. Redirect ("DraftOrderDetail. aspx? Type = view & ServiceID = "+ serviceId +" & FromPage = Order & GridPageIndex = "+ serviceId); break ;}}