protected void btnMOdificar_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.ModificarFormulario(Convert.ToInt32(hdIdFormulario.Value), txtNombre.Value, txtRuta.Value, txtGrupo.Value, Convert.ToInt32(ddlEstado.SelectedValue), 5);

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