protected void Page_Load(object sender, EventArgs e) { preurl = ConfigurationSettings.AppSettings.Get("urldata"); width = Request.QueryString["w"]; lang = ConvertUtility.ToInt32(Request.QueryString["lang"]); if (Session["telco"] == null) { Session["telco"] = Constant.T_Undefined; } if (!IsPostBack) { if (lang == 1) { ltrTenChuyenMuc.Text = "KẾT QUẢ TÌM KIẾM"; } } if (!string.IsNullOrEmpty(Request.QueryString["cpage"])) { curpage = ConvertUtility.ToInt32(Request.QueryString["cpage"]); } //start result list int totalrecord = 0; DataTable dtCat = VideoController.GetAllWap_Video_ItemByKey(Session["telco"].ToString(), Request.QueryString["key"], pagesize, curpage, out totalrecord); rptResult.DataSource = dtCat; rptResult.DataBind(); Paging1.totalrecord = totalrecord; Paging1.pagesize = pagesize; Paging1.numberpage = pagenumber; Paging1.defaultparam = "?lang=" + Request.QueryString["lang"] + "&display=" + Request.QueryString["display"] + "&w=" + Request.QueryString["w"] + "&key=" + Request.QueryString["key"]; Paging1.queryparam = "?lang=" + Request.QueryString["lang"] + "&display=" + Request.QueryString["display"] + "&w=" + Request.QueryString["w"] + "&key=" + Request.QueryString["key"] + "&cpage="; if (totalrecord == 0) { Paging1.Visible = false; } if (lang == 1) { ltrCount.Text = "Tìm thấy " + totalrecord + " video clip"; } else { ltrCount.Text = "Tim thay " + totalrecord + " video clip"; } }