protected void B_AgregarProducto_Click(object sender, EventArgs e) { idAbono = Convert.ToString(Session["idAbono"]); NuevosAbonos newAbono = new NuevosAbonos(vntaS, precioDeuda, pagoActual, idAbono); this.llenarGV_Abonos(); string a = newAbono.traerMensaje(); #pragma warning disable CS0618 // Type or member is obsolete RegisterStartupScript("mensaje", "<script type='text/javascript'>alert('" + a + "');</script>"); #pragma warning restore CS0618 // Type or member is obsolete }
void nuevaVenta() { vntaS = Session["venta"] as DataTable; NuevosAbonos newAbono = new NuevosAbonos(vntaS, precioDeuda, pagoActual, idAbono); this.actualizarInventario(); string a = newAbono.traerMensaje(); #pragma warning disable CS0618 // Type or member is obsolete RegisterStartupScript("mensaje", "<script type='text/javascript'>alert('" + a + "');</script>"); #pragma warning restore CS0618 // Type or member is obsolete Response.Redirect("../Tienda/VistaFactura.aspx"); }