protected void btnguardanuevo_Click(object sender, EventArgs e) { var pic = string.Empty; var folder = "~/dist/img/signature"; string firma = ruta.Value; if (firma != null) { pic = FilesHelper.UploadPhoto(firma, folder, txtcc.Value); if (pic != "") { pic = $"{folder}/{pic}"; } string[] palabras = pic.Split('~'); string urll = palabras[1]; try { String bd = Session["BD"].ToString(); var valida = sb.Ccrearfirma(txtcc.Value, txtname1.Value.ToUpper(), Select.Value.ToUpper(), txtcelular.Value, urll, bd); if (valida.Rows.Count > 0) { notificacion.Visible = true; alertant.InnerText = "Registro guardado"; Session["TXTCC"] = txtcc.Value; txtname1.Value = ""; txtcelular.Value = ""; Select.Value = ""; } else { txtname1.Value = "Error al Guardar"; } } catch (Exception ex) { notificacion.Visible = true; alertant.InnerText = ex.Message; } // hhtps://nombreservidor.com/fdist/img/134.png } }