Пример #1
0
    //Load dữ liệu vào ListView
    private void LoadProducts()
    {
        try
        {
            DataTable dt    = new DataTable();
            DAProduct oData = new DAProduct();

            dt.Load(oData.USP_Product_Client_Search(Session["SearchKey"].ToString()));

            lvData.DataSource = dt;
            lvData.DataBind();

            if (dt.Rows.Count < 10)
            {
                dvPaging.Visible = false;
            }
        }
        catch
        {
        }
    }