public void gv_listar_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "BORRAR") { SolicitudBC s = new SolicitudBC(); s.SOLI_ID = Convert.ToInt32(e.CommandArgument); if (s.EliminarInconsistentes(s.SOLI_ID)) { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "msj", "alert('Solicitud eliminada');", true); } else { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "msj", "alert('Error');", true); } ObtenerSolicitudes(); } }