protected void Page_Load(object sender, System.EventArgs e) { if (!Page.IsPostBack) { user = new LTP.Accounts.Bus.AccountsPrincipal(Context.User.Identity.Name); if (Session["UserInfo"] == null) { return; } currentUser = (LTP.Accounts.Bus.User)Session["UserInfo"]; Maticsoft.BLL.SysManage sm = new Maticsoft.BLL.SysManage(); DataSet ds; ds = sm.GetTreeList(""); BindTreeView("mainFrame", ds.Tables[0]); if (this.TreeView1.Nodes.Count == 0) { strWelcome += "<br> 你没有任何模块的访问权"; } } }