示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            RolController Rol   = new RolController();
            List <string> lista = Rol.consultarRoles(Rol.modelo);

            select_roles.Items.Clear();
            Permisos = Rol.Permisos();
            for (int i = 0; i < lista.Count; i++)
            {
                select_roles.Items.Add(lista[i]);
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["ENTRADA"].ToString().Equals("F"))
            {
                Response.Redirect("../../Login.aspx");
            }
            if (!Session["ROL"].ToString().Equals("director"))
            {
                Response.Redirect("../Home/Principal.aspx");
            }
            RolController p = new RolController();

            lista = p.consultarRoles(p.modelo);
        }