protected void initControl() { ConfigBSO configBSO = new ConfigBSO(); int Ngon_Ngu = Convert.ToInt32(ViewState["CauHinh_Viet"]); if (Ngon_Ngu == 1 || Ngon_Ngu == 0) { VideoBSO videoBSO = new VideoBSO(); DataTable table = videoBSO.GetVideoAll(Language.language); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(grvVideo, table); } else { VideoBSO videoBSO = new VideoBSO(); DataTable table = videoBSO.GetVideoAll(Language.language_Eng); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(grvVideo, table); } }
private void GetVideo() { VideoBSO videoBSO = new VideoBSO(); DataTable table = videoBSO.GetVideoAll(Language.lang); Repeater1.DataSource = table; Repeater1.DataBind(); }
protected void initControl() { DataTable dt = new DataTable(); dt = _md.Get_pxn(Language.language); ConfigBSO configBSO = new ConfigBSO(); int Ngon_Ngu = Convert.ToInt32(ViewState["CauHinh_Viet"]); if (Ngon_Ngu == 1 || Ngon_Ngu == 0) { VideoBSO videoBSO = new VideoBSO(); DataTable table = videoBSO.GetVideoAll(Language.language); commonBSO commonBSO = new commonBSO(); //commonBSO.FillToGridView(grv_NhapKetQua, dt); RadGrid1.DataSource = dt; RadGrid1.DataBind(); } else { VideoBSO videoBSO = new VideoBSO(); DataTable table = videoBSO.GetVideoAll(Language.language_Eng); commonBSO commonBSO = new commonBSO(); //commonBSO.FillToGridView(grv_NhapKetQua, dt); RadGrid1.DataSource = dt; RadGrid1.DataBind(); } //foreach (GridViewRow gdRow in grv_NhapKetQua.Rows) //{ // if (gdRow.RowType == DataControlRowType.DataRow) // { // var label1 = (Label)gdRow.Cells[8].FindControl("lbl_value"); // var lable2 = (Label)gdRow.Cells[8].FindControl("lbl_TrangThai"); // if (label1.Text == "1") // { // lable2.Text = "Đã có kết quả"; // } // if (label1.Text == "0") // { // lable2.Text = "Chưa có kết quả"; // } // } //} }