Ejemplo n.º 1
0
 protected void lnkEliminar_Click(object sender, EventArgs e)
 {
     try
     {
         if (!(Boolean)ViewState["eliminar"])
         {
             clsHelper.mensaje("No tiene permiso para realizar esta acción", this, clsHelper.tipoMensaje.alerta);
             return;
         }
         GridViewRow gr = (GridViewRow)((Control)sender).Parent.Parent;
         int         idImagenPaciente;
         idImagenPaciente = int.Parse(((Label)gr.FindControl("lblIdImagenPaciente")).Text);
         ClsImagenPaciente im = new ClsImagenPaciente();
         im.eliminar(idImagenPaciente);
         clsHelper.mensaje("Proceso exitoso", this, clsHelper.tipoMensaje.informacion);
         cargarDatosExistentes();
     }
     catch (Exception ex)
     {
         clsHelper.mostrarError("lnkEliminar_Click", ex, this, true);
     }
 }