Top.aspx.cs
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:1k
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using com.etong.Inform;
- public partial class Top : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- CheckUserInfo checkuserinfo=(CheckUserInfo)Session["checkuserinfo"];
- //if (checkuserinfo.EmpName =="崔罗罗")
- if (checkuserinfo == null)
- {
- ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('系统提示:您尚未登录或您登录已超时,请重新登录!');top.location.href='login.aspx'</script>");
- return;
- }
- if (checkuserinfo.EmpName == null || checkuserinfo.EmpName == "admin")
- Header1_lblName.InnerText = "admin";
- else
- Header1_lblName.InnerText = checkuserinfo.EmpName + " / " + checkuserinfo.OrgName;
- HL_Out.Attributes.Add("onclick", "return window.confirm('确定要注销吗?');");
- }
- }