private void BindCateNews() { CateNewsBSO catenewsBSO = new CateNewsBSO(); DataTable table = catenewsBSO.GetCateNews(Language.language); commonBSO commonBSO = new commonBSO(); commonBSO.FillToDropDown(ddlCateNews, table, "", "", "CateNewsName", "CateNewsID", ""); }
private void ViewCateNews() { ddlCateNews.Items.Clear(); CateNewsBSO catenewsBSO = new CateNewsBSO(); DataTable table = catenewsBSO.GetCateNews(Language.language); DataView dataView = new DataView(table); dataView.RowFilter = "GroupCate = 4"; ddlCateNews.DataSource = dataView; ddlCateNews.DataTextField = "CateNewsName"; ddlCateNews.DataValueField = "CateNewsID"; ddlCateNews.DataBind(); }