public void BindSubcategoryname(int CategoryId) { DataSet dsSubcategoryMasterListbyCategoryId = CSubCategoryMasterServices.SubCategoryMasterListbyCategoryId(Convert.ToInt32(DropCategoryname.SelectedValue)); DropSubCategory.DataSource = dsSubcategoryMasterListbyCategoryId; DropSubCategory.Items.Clear(); DropSubCategory.DataTextField = "SubCategoryName"; DropSubCategory.DataValueField = "SubCategoryId"; DropSubCategory.DataBind(); }