protected void GuardarButton_Click(object sender, EventArgs e) { if (ConceptoTextBox.Text == "" || MontoTextBox.Text == "") { Page.ClientScript.RegisterStartupScript(this.GetType(), "scripts", "<script>alert('Debes Llenar Todos los Campos');</script>"); } else { Entidades.Gastos gasto = new Entidades.Gastos(); LlenarClase(gasto); GastosBLL.Insertar(gasto); Page.ClientScript.RegisterStartupScript(this.GetType(), "scripts", "<script>alert('Proceso Completado');</script>"); Limpiar(); } }
protected void GuardarButton_Click(object sender, EventArgs e) { if (ConceptoTextBox.Text == "" || MontoTextBox.Text == "") { Utilidades.ShowToastr(this, "Completar Campos (*) ", "Advertencia", "Warning"); } else { Entidades.Gastos gasto = new Entidades.Gastos(); LlenarClase(gasto); GastosBLL.Insertar(gasto); Utilidades.ShowToastr(this, "Guardado con Exitos", "Exito", "success"); Limpiar(); } }