예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session.IsNewSession)
     {
         Response.Redirect("~/Home.aspx");
     }
     System.Web.UI.UserControl userControl = (System.Web.UI.UserControl) this.LoadControl("~/UserControl/AdminMenu.ascx");
     this.plcHldMenu.Controls.Add(userControl);
     if (!IsPostBack)
     {
         _txtfind = "";
         if (!((CustomPrincipal)Context.User).IsInRole(PubEntAdminManager.AdminRole))
         {
             PubEntAdminManager.UnathorizedAccess();
         }
         Bindgrid("");
     }
 }