Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            bool OperInativar = false;

            try
            {
                if (!Session["perfil"].Equals("Gestor") && !Session["perfil"].Equals("Administrador"))
                {
                    Response.Redirect("\\Views\\SGA\\Inicio.aspx", false);
                }

                if (Request.QueryString["Id"] != null)
                {
                    ObjUsr.Id    = Convert.ToInt32(Request.QueryString["Id"]);
                    OperInativar = new ManterUsuario(ObjUsr).InativaUsuario();
                    Response.Redirect("\\Views\\SGA\\VUsuario\\ConsultaUsuarios.aspx?OpInatUsr=" + OperInativar.ToString());
                }
            }
            catch (Exception Ex)
            {
                LogException.InsereLogBd(Ex);
            }
        }