protected void btnRegistro_Click(object sender, EventArgs e)
        {
            if (txtNombre.Value == "")
            {
                String mensajeScriptnm = @"<script type='text/javascript'>
                       swal({
                title: ""Debe ingresar Nombre"",
                icon: ""warning"",
                dangerMode: false,
            })
                  </script>";
                ScriptManager.RegisterStartupScript(this, typeof(Page), "mensaje", mensajeScriptnm, false);
                txtNombre.Focus();
                return;
            }
            if (txtRuta.Value == "")
            {
                String mensajeScriptnm = @"<script type='text/javascript'>
                       swal({
                title: ""Debe ingresar Ruta"",
                icon: ""warning"",
                dangerMode: false,
            })
                  </script>";
                ScriptManager.RegisterStartupScript(this, typeof(Page), "mensaje", mensajeScriptnm, false);
                txtRuta.Focus();
                return;
            }
            if (txtGrupo.Value == "")
            {
                String mensajeScriptnm = @"<script type='text/javascript'>
                       swal({
                title: ""Debe ingresar Grupo"",
                icon: ""warning"",
                dangerMode: false,
            })
                  </script>";
                ScriptManager.RegisterStartupScript(this, typeof(Page), "mensaje", mensajeScriptnm, false);
                txtGrupo.Focus();
                return;
            }

            Formulario OBJ = new Formulario();
            //Se debe reemplazar el usucrea y el idusuario
            int idFormulario = OBJ.AgregarFormulario(txtNombre.Value, txtRuta.Value, txtGrupo.Value, Convert.ToInt32(ddlEstado.SelectedValue), 5);

            if (idFormulario > 0)
            {
                ListarFormulario();
                String mensajeScript = @"<script type='text/javascript'>
                       swal({
                title: ""Se registro Correctamente el Formulario"",
                icon: ""success"",
                dangerMode: false,
            })
                  </script>";
                ScriptManager.RegisterStartupScript(this, typeof(Page), "mensaje", mensajeScript, false);
                return;
            }
        }