Beispiel #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (!UserInfo.IsSuperUser)
            {
                Response.Redirect(Globals.NavigateURL("Access Denied"), true);
            }

            rptControls.ItemDataBound += rptControls_ItemDataBound;

            //Get enabled Dashboard Controls
            List <DashboardControl> controls = DashboardController.GetDashboardControls(true);

            //Bind to tab list
            rptTabs.DataSource = controls;
            rptTabs.DataBind();

            //Bind to control list
            rptControls.DataSource = controls;
            rptControls.DataBind();
        }