protected void Page_Load(object sender, EventArgs e) { //注册ajax strUrl = IndustryPlatform.Common.SystemConfig.StartUrl; OutScriptUrl();//输出js sysid = Request.QueryString["sysid"]; if (sysid == null || sysid == "") { sysid = "s0002"; } CookieManager.AppendCookie("Sys", sysid); if (!Page.IsPostBack) { IndustryPlatform.Model.SYS_MenuEntity menu = new IndustryPlatform.BLL.SYS_Menu().GetModel(sysid); if (menu != null) { this.lbSys.Text = menu.MenuName; } DataSet ds = new DataSet(); SYS_OperatorBll operbll = new SYS_OperatorBll(); ds = operbll.GetOperatorInfo(CookieManager.GetCookieValue("uid")); this.lbUserName.Text = ds.Tables[0].Rows[0]["UserName"].ToString(); BindTree(sysid); } }
protected void Page_Load(object sender, EventArgs e) { //注册ajax strUrl = IndustryPlatform.Common.SystemConfig.StartUrl; OutScriptUrl();//输出js sysid = Request.QueryString["sysid"]; if (sysid == null || sysid == "") { sysid = "s0002"; } CookieManager.AppendCookie("Sys", sysid); if (!Page.IsPostBack) { IndustryPlatform.Model.SYS_MenuEntity menu = new IndustryPlatform.BLL.SYS_Menu().GetModel(sysid); if (menu != null) this.lbSys.Text = menu.MenuName; DataSet ds = new DataSet(); SYS_OperatorBll operbll = new SYS_OperatorBll(); ds = operbll.GetOperatorInfo(CookieManager.GetCookieValue("uid")); this.lbUserName.Text = ds.Tables[0].Rows[0]["UserName"].ToString(); BindTree(sysid); } }