在写一个登陆页,希望根据登陆人员不同给予不同的权限。但是Session一直报错。大佬帮帮我
if (Session["UserID"] != null){if (Session["UserID"].ToString().ToLower() != "administrator")...}