protected void Page_Load(object sender, EventArgs e) { // create Menu int role = int.Parse(new Base().RoleCode); DataModelEntities entities = new DataModelEntities(); menuList = entities.GetRoleAccess(role).ToList(); MakeMenuHTML(); entities = null; lblLoginStatus.Text = new Base().FullName; }