Esempio n. 1
0
        protected override void OnLoad(EventArgs e)
        {
            if (!IsPostBack)
            {
                if (null != Request.QueryString[Keys.QRYSTR_CATEGORYTYPE])
                {
                    CategoryType =
                        (CategoryType)Enum.Parse(typeof(CategoryType), Request.QueryString[Keys.QRYSTR_CATEGORYTYPE]);
                }
                else
                {
                    CategoryType = CategoryType.LinkCollection;
                }

                if (CategoryType == CategoryType.LinkCollection)
                {
                    TabSectionId = "Links";
                }

                ckbNewIsActive.Checked = Preferences.AlwaysCreateIsActive;

                BindLocalUI();
                BindList();
            }
            else
            {
                if (CategoryType == CategoryType.LinkCollection)
                {
                    TabSectionId = "Links";
                }
            }
            base.OnLoad(e);
        }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if(!IsPostBack)
     {
         //Viewstate access is lost on postback for this control, so catType defaults to PostCollection.
         //So check if the catType is available in the query string and set this.catType's value to
         //the querystring's category type enumeration
         if (!String.IsNullOrEmpty(Request.QueryString[Keys.QRYSTR_CATEGORYTYPE]))
         {
             this.catType = (CategoryType)Enum.Parse(typeof(CategoryType), Request.QueryString[Keys.QRYSTR_CATEGORYTYPE]);
         }
         BindCategoriesRepeater();
     }
 }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (null != Request.QueryString[Keys.QRYSTR_CATEGORYTYPE])
                {
                    this.CategoryType = (CategoryType)Enum.Parse(typeof(CategoryType), Request.QueryString[Keys.QRYSTR_CATEGORYTYPE]);
                }
                else
                {
                    this.CategoryType = CategoryTypeEnum.LinkCollection;
                }

                if(this.CategoryType == CategoryTypeEnum.LinkCollection)
                {
                    this.TabSectionId = "Links";
                }

                ckbNewIsActive.Checked = Preferences.AlwaysCreateIsActive;

                BindLocalUI();
                BindList();
            }
            else
            {
                if (this.CategoryType == CategoryTypeEnum.LinkCollection)
                {
                    this.TabSectionId = "Links";
                }
            }
        }
        protected override void OnLoad(EventArgs e)
        {
            if(!IsPostBack)
            {
                if(null != Request.QueryString[Keys.QRYSTR_CATEGORYTYPE])
                {
                    CategoryType =
                        (CategoryType)Enum.Parse(typeof(CategoryType), Request.QueryString[Keys.QRYSTR_CATEGORYTYPE]);
                }
                else
                {
                    CategoryType = CategoryType.LinkCollection;
                }

                if(CategoryType == CategoryType.LinkCollection)
                {
                    TabSectionId = "Links";
                }

                ckbNewIsActive.Checked = Preferences.AlwaysCreateIsActive;

                BindLocalUI();
                BindList();
            }
            else
            {
                if(CategoryType == CategoryType.LinkCollection)
                {
                    TabSectionId = "Links";
                }
            }
            base.OnLoad(e);
        }