protected void UpdateCategoryDisplay() { if (this.CategoryPath.CurrentCategoryId == 0) { this.CurrentCategoryLabel.Text = "[All Categories]"; this.CurrentCategoryActionLabel.Text = "All Categories"; this.txtEditCategoryName.Text = string.Empty; this.txtEditCategoryDescription.Text = string.Empty; this.txtEditCategoryName.Enabled = this.txtEditCategoryDescription.Enabled = this.RenameCategoryButton.Enabled = false; this.MoveButton.Enabled = false; this.MoveAction.Enabled = false; this.CategoryDropDown.Enabled = false; this.RemoveCategoryButton.Enabled = false; } else { base.CurrentProductCategory = ProductCategories.GetProductCategory(this.CategoryPath.CurrentCategoryId); this.CurrentCategoryLabel.Text = this.CurrentCategoryActionLabel.Text = this.txtEditCategoryName.Text = this.CategoryPath.CurrentCategoryName; this.txtEditCategoryDescription.Text = base.CurrentProductCategory.CategoryDescription; this.txtEditCategoryName.Enabled = this.txtEditCategoryDescription.Enabled = true; this.RenameCategoryButton.Enabled = true; this.MoveButton.Enabled = true; this.MoveAction.Enabled = true; this.CategoryDropDown.Enabled = true; this.RemoveCategoryButton.Enabled = true; } }
//public void Bindddlproductcategory() //{ // ddlproductcategory.DataSource = pcobj.GetProductCategory(true); // ddlproductcategory.DataTextField = "ProductCategoryName"; // ddlproductcategory.DataValueField = "ProductCategoryID"; // ddlproductcategory.DataBind(); //} // public void Bindddlspeccategory() //{ // ddlspeccategory.DataSource = scobj.GetSpecCategory(true); // ddlspeccategory.DataTextField = "SpecificationCategoryName"; // ddlspeccategory.DataValueField = "SpecificationCategoryID"; // ddlspeccategory.DataBind(); //} public void BindPcategory() { ddlPCname.DataSource = pcobj.GetProductCategory(true); ddlPCname.DataTextField = "ProductCategoryName"; ddlPCname.DataValueField = "ProductCategoryID"; ddlPCname.DataBind(); }
public void Bindddlproductcategory() { ddlPCategorytypes.DataSource = objprocat.GetProductCategory(true); ddlPCategorytypes.DataTextField = "ProductCategoryName"; ddlPCategorytypes.DataValueField = "ProductCategoryID"; ddlPCategorytypes.DataBind(); }
private void SetupForCategory() { base.CurrentProductCategory = ProductCategories.GetProductCategory(int.Parse(base.Request.QueryString["c"].ToString())); List <SueetieProduct> sueetieProductsByCategory = Products.GetSueetieProductsByCategory(base.CurrentProductCategory.CategoryID, true); this.rptProducts.DataSource = sueetieProductsByCategory; this.rptProducts.DataBind(); }
//public void Bindddlproductcategory() //{ // ddlproductcategory.DataSource = pcobj.GetProductCategory(true); // ddlproductcategory.DataTextField = "ProductCategoryName"; // ddlproductcategory.DataValueField = "ProductCategoryID"; // ddlproductcategory.DataBind(); //} public void BindPcategory() { SpecificationCategory objspec = new SpecificationCategory(); ddlPCname.DataSource = pcobj.GetProductCategory(true); ddlPCname.DataTextField = "ProductCategoryName"; ddlPCname.DataValueField = "ProductCategoryID"; ddlPCname.DataBind(); }
public void Bindddlproductcategory() { List <ProductCategories> lstpcate = new List <ProductCategories>(); lstpcate = objpc.GetProductCategory(true); ddlproductcategory.DataSource = lstpcate; ddlproductcategory.DataTextField = "ProductCategoryName"; ddlproductcategory.DataValueField = "ProductCategoryID"; ddlproductcategory.DataBind(); ddlProductCategoryu.DataSource = lstpcate; ddlProductCategoryu.DataTextField = "ProductCategoryName"; ddlProductCategoryu.DataValueField = "ProductCategoryID"; ddlProductCategoryu.DataBind(); }
protected void SetCurrentCategory(int categoryId) { this.CategoryPath.CurrentCategoryId = categoryId; base.CurrentProductCategory = ProductCategories.GetProductCategory(categoryId); this.UpdateCategoryDisplay(); }