private void Page_Load(object sender, System.EventArgs e)
{
//在此处放置用户代码以初始化页面
if (Session["Login"] == null) 
{
currencyLib.ShowAndCloseWindowNoFresh(this,"信息提示!","太长时间没有操作,请重新登陆!");
}
else
{
if (!this.IsPostBack)
{
CAccountInfo g_Account = new CAccountInfo();
if (g_Account.ValidateAccountPopedom(Session["Login"].ToString(),Session["password"].ToString(),g_Account.getUrlPopedom(Request.Path.ToString())))
{
createTreeView();
}
else
{
//currencyLib.ShowMessage(this,"","对不起,您没有权限访问这个页面!");
currencyLib.HistoryBack(this,"","对不起,您没有权限访问这个页面!");
//Request. }
}
//createTreeView();
}
}我是这么做的,可是没有权限访问的时候,还是有些控件显示出来了,该怎么解决这个问题呢