protected void txtSearchByProductName_TextChanged(object sender, EventArgs e) { var productName = txtSearchByProductName.Text; if (productName != null) { RepeaterForAllProducts.DataSource = _productManager.GetProductsByName(productName); RepeaterForAllProducts.DataBind(); } }
private void LoadAllProducts() { RepeaterForAllProducts.DataSource = _productManager.GetAllProducts(); RepeaterForAllProducts.DataBind(); }