protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { HttpContext.Current.Session.Clear(); HttpContext.Current.Session.Remove("UserId"); HttpContext.Current.Session.Remove("UserName"); HttpContext.Current.Session.Remove("RoleId"); HttpContext.Current.Session.Remove("RoleName"); Helper.BindDropDownList(this.ddlRole, WorkFlows.GetSysRole(), "RoleName", "ID", true, "请选择系统角色", "0"); } }