Exemplo n.º 1
0
        protected void ddlCatSelectedIndexChanged(object sender, EventArgs e)
        {
            this.SortExpression = DEFAULT_SORTBY;
            this.SortAscending  = true;

            if (this.ddlCat.SelectedIndex != 0)
            {
                this.ddlValue.Visible = true;

                if (String.Compare(this.ddlCat.SelectedItem.Text, "Subcategory", true) == 0)
                {
                    this.BindDDLValues_Sub(PE_DAL.GetAllCatalogSubjectHvSubcat(true));
                    this.ddlValue.SelectedIndex = 0;
                    this.BindData(PE_DAL.GetAllCatalogSubCategorySeq(System.Convert.ToInt32(this.ddlValue.SelectedValue), this.SortExpression, this.SortAscending, true));
                }
                else if (String.Compare(this.ddlCat.SelectedItem.Text, "Subsubcategory", true) == 0)
                {
                    this.BindDDLValues_Subsub(PE_DAL.GetAllCatalogSubcatHvSubSubcat(true));
                    this.ddlValue.SelectedIndex = 0;
                    this.BindData(PE_DAL.GetAllCatalogSubSubCategorySeq(System.Convert.ToInt32(this.ddlValue.SelectedValue), this.SortExpression, this.SortAscending, true));
                }
            }
            else
            {
                this.ddlValue.Visible = false;

                if (String.Compare(this.ddlCat.SelectedItem.Text, "Category", true) == 0)
                {
                    this.BindData(PE_DAL.GetAllCatalogSubjectSeq(this.SortExpression, this.SortAscending, true));
                }
            }
        }