protected void btnSearch_Click(object sender, EventArgs e) { int pageSize = ucDataNavigator.PageSize; int rowCount = 0; Admins vcontroller = new Admins(); DateTime ngaydat = Convert.ToDateTime(txtsearch.Text); string errMsg = string.Empty; try { Repeater1.DataSource = vcontroller.getall_danhthu_para(ngaydat, 1, pageSize, ref rowCount, ref errMsg); PreparePaging(1, pageSize, rowCount); Repeater1.DataBind(); } catch (Exception ex) { Response.Write(ex.Message); } finally { vcontroller = null; } }