private void ViewCateGroup() { CateNewsGroupBSO catenewsGroupBSO = new CateNewsGroupBSO(); DataTable table = catenewsGroupBSO.GetCateNewsGroupAll(); DataView dv = new DataView(table); dv.RowFilter = "CateNewsGroupName <> 'Văn bản pháp quy' and language = 'vi-VN'"; DataTable dt = dv.ToTable(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToDropDown(ddlValueCategory, dt, "Không có giá trị", "0", "CateNewsGroupName", "GroupCate", ""); }
protected void NgonNgu_SelectedIndexChanged(object sender, EventArgs e) { if (NgonNgu.SelectedValue == "vi-VN") { CateNewsGroupBSO catenewsGroupBSO = new CateNewsGroupBSO(); DataTable table = catenewsGroupBSO.GetCateNewsGroupAll(); DataView dv = new DataView(table); dv.RowFilter = "CateNewsGroupName <> 'Văn bản pháp quy' and language = 'vi-VN'"; DataTable dt = dv.ToTable(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToDropDown(ddlValueCategory, dt, "Không có giá trị", "0", "CateNewsGroupName", "GroupCate", ""); } if (NgonNgu.SelectedValue == "en-US") { CateNewsGroupBSO catenewsGroupBSO = new CateNewsGroupBSO(); DataTable table = catenewsGroupBSO.GetCateNewsGroupAll(); DataView dv = new DataView(table); dv.RowFilter = "CateNewsGroupName <> 'Văn bản pháp quy' and language = 'en-US'"; DataTable dt = dv.ToTable(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToDropDown(ddlValueCategory, dt, "Không có giá trị", "0", "CateNewsGroupName", "GroupCate", ""); } }
public void ViewCateNewsGroup() { CateNewsGroupBSO cateNewsGroupBSO = new CateNewsGroupBSO(); DataTable table = cateNewsGroupBSO.GetCateNewsGroupAll(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToRadioList(rdbGroupCate, table, "CateNewsGroupName", "GroupCate", "1"); }