Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            UserLbl.Text = (new LdapAuthentication(Context.User.Identity.Name.Split('\\')[0])).
                GetUserDisplayName(Context.User.Identity.Name.Split('\\')[1]);

            List<string> allowed = new List<string>{"lhuether", "slogsdon"};

            if (allowed.Contains(Context.User.Identity.Name.Split('\\')[1])) {
                ListHyperLink.Visible = true;
            }
        }