protected void Page_Init(object sender, EventArgs e)
        {
            Act act = new Act(Web);

            if (act.IsOnline)
            {
                Microsoft.SharePoint.Utilities.SPUtility.Redirect("epmlive/noaccess.aspx", Microsoft.SharePoint.Utilities.SPRedirectFlags.RelativeToLayoutsPage, HttpContext.Current);
            }
            else
            {
                SPSecurity.RunWithElevatedPrivileges(delegate()
                {
                    _ADSync        = new ADSync();
                    _htDropdownIds = new Hashtable();
                    DropDownListScheduleType.SelectedIndexChanged += new EventHandler(DropDownListScheduleType_SelectedIndexChanged);

                    InitDomain();
                    InitGroups();
                    InitActiveDirectorySizeLimitTextBox();
                    InitResourcePoolFields();
                    InitSchedule();
                    InitExclusions();
                    InitDelete();
                    LoadScheduleStatus();
                });
            }
        }
 protected void Page_LoadComplete(object sender, EventArgs e)
 {
     _ADSync = null;
 }