protected void grvArchivosSoporte_SelectedIndexChanged(object sender, EventArgs e) { try { string rutaArchivo = Server.MapPath(grvArchivosSoporte.SelectedRow.Cells[2].Text); string msjDel = ""; if (File.Exists(rutaArchivo)) { File.Delete(rutaArchivo); } else { //MensajeForm("El archivo no existe", "DetallePagaduria.aspx"); msjDel = "Archivo no Encontrado."; } string resDel = AdministrarPagadurias.EliminarArchivoSoporteConvenio(Convert.ToInt32(grvArchivosSoporte.SelectedValue)); //MensajeForm(msjDel + " " + resDel, "ConveniosPagaduria.aspx#archSopConv"); MensajeForm(msjDel + " " + resDel, "~/gestion/pagadurias/convenios#archSopConv"); } catch (Exception ex) { MensajeForm("Ha ocurrido un problema con su petición", null); } }