예제 #1
0
 private void BindSubCats()
 {
     SubCategory subcats = new SubCategory();
     subcats.GetSubCategoryByCatID(Convert.ToInt32(uiDropDownListCategory.SelectedValue));
     uiDropDownListSubCat.DataSource = subcats.DefaultView;
     uiDropDownListSubCat.DataTextField = "Name";
     uiDropDownListSubCat.DataValueField = "SubCategoryID";
     uiDropDownListSubCat.DataBind();
 }