private void InitializeFields()
        {
            var flags = BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance;

            _page.GetType()
            .GetFields(flags)
            .Where(field => field.GetValue(_page) == null)
            .ToList()
            .ForEach(field => field.SetValue(_page, CreateInstance(field.FieldType)));
            _phError        = GetReferenceField <PlaceHolder>("phError");
            _pnlNoAccess    = GetReferenceField <Panel>("pnlNoAccess");
            _pnlContent     = GetReferenceField <Panel>("pnlContent");
            _chkboxOverride = GetReferenceField <CheckBox>("chkboxOverride");
            _txtQueryName   = GetReferenceField <TextBox>("txtQueryName");
            _txtDelimiter   = GetReferenceField <TextBox>("txtDelimiter");
        }
        private void InitializeFields()
        {
            var fields = _page.GetType()
                         .GetFields(_privateFlags)
                         .Where(field => field.GetValue(_page) == null)
                         .ToList();

            foreach (var field in fields)
            {
                var value = CreateInstance(field.FieldType);
                field.SetValue(_page, value);
            }
            _txtOmniDisplayName  = GetRefrenceField <TextBox>("txtOmniDisplayName");
            _chklstDynamicFields = GetRefrenceField <CheckBoxList>("chklstDynamicFields");
            _viewState           = GetRefrenceProperty <StateBag>("ViewState");
            _lblErrorMessage     = GetRefrenceField <Label>("lblErrorMessage");
            _phError             = GetRefrenceField <PlaceHolder>("phError");
        }