private void LoadTopCats() { string menu = ""; TopLevelCat cats = new TopLevelCat(); cats.LoadAll(); for (int i = 0; i < cats.RowCount; i++) { menu += "<li><a href='browsec.aspx?tcid=" + cats.TopLevelCatID.ToString() + (cats.IsPartySupplier ? "&ps=true" : "") +"'>" + cats.NameEng + "</a> "; menu += LoadMainCats(cats.TopLevelCatID); menu += "</li>"; cats.MoveNext(); } uiLiteralmenu.Text = menu; }
private void BindCats() { TopLevelCat cats = new TopLevelCat(); cats.LoadAll(); cats.Sort = "NameEng"; uiGridViewCats.DataSource = cats.DefaultView; uiGridViewCats.DataBind(); }
private void LoadDDLs() { TopLevelCat Tcats = new TopLevelCat(); Tcats.LoadAll(); uiDropDownListTC.DataSource = Tcats.DefaultView; uiDropDownListTC.DataTextField = "NameEng"; uiDropDownListTC.DataValueField = "TopLevelCatID"; uiDropDownListTC.DataBind(); LoadMainCat(); }
private void LoadDDLs() { Color colors = new Color(); colors.LoadAll(); uiDropDownListColor.DataSource = colors.DefaultView; uiDropDownListColor.DataTextField = "ColorNameEng"; uiDropDownListColor.DataValueField = "ColorID"; uiDropDownListColor.DataBind(); uiDropDownListBackColor.DataSource = colors.DefaultView; uiDropDownListBackColor.DataTextField = "ColorNameEng"; uiDropDownListBackColor.DataValueField = "ColorID"; uiDropDownListBackColor.DataBind(); Dimension dims = new Dimension(); dims.GetAllDims(); uiDropDownListDim.DataSource = dims.DefaultView; uiDropDownListDim.DataTextField = "DisplayName"; uiDropDownListDim.DataValueField = "DimensionID"; uiDropDownListDim.DataBind(); TopLevelCat Tcats = new TopLevelCat(); Tcats.LoadAll(); uiDropDownListTC.DataSource = Tcats.DefaultView; uiDropDownListTC.DataTextField = "NameEng"; uiDropDownListTC.DataValueField = "TopLevelCatID"; uiDropDownListTC.DataBind(); LoadMainCat(); }