protected void Page_Load(object sender, EventArgs e) { if (CoreCache.GetCache("SysUserCode") == null) { TimeOut.ExecTimeOut(this); return; } this.labUserName.Text = CoreCache.GetCache("SysUserName").ToString(); switch (CoreCache.GetCache("SysUserType").ToString()) { case "man": this.labUserType.Text = "管理员"; break; case "ywy": this.labUserType.Text = "业务员"; break; case "yh": this.labUserType.Text = "普通用户"; break; } }