Example #1
0
 protected void GuardarButton_Click(object sender, EventArgs e)
 {
     if (IDTextBox.Text == "" || DescripcionTextBox.Text == "" || MetaTextBox.Text == "" || LogradoTextBox.Text == "")
     {
         Page.ClientScript.RegisterStartupScript(this.GetType(), "scripts", "<script>alert('Debes Llenar Todos los campos SeƱalado con (*)');</script>");
     }
     else
     {
         Entidades.PresupuestoDetalle detalle = new Entidades.PresupuestoDetalle();
         LlenarClase(detalle);
         PresupuestoDetalleBLL.Insertar(detalle);
         Limpiar();
         Page.ClientScript.RegisterStartupScript(this.GetType(), "scripts", "<script>alert('Guardo');</script>");
     }
 }