Exemplo n.º 1
0
 protected void gvService_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "EditService")
     {
         ViewState["ID"] = Convert.ToInt32(e.CommandArgument);
         try
         {
             BindServiceToUpdate();
         }
         catch (Exception exc)
         {
             ShowMessage(ref lblMessage, MessageType.Danger, exc.Message);
             lblMessage.Visible = true;
         }
     }
     if (e.CommandName == "DeleteService")
     {
         client.DeleteTombstoneServiceByID(Convert.ToInt32(e.CommandArgument));
         bindServiceListList();
     }
 }