Search() public method

public Search ( string toSearch, string site = "MLA", string cat = "" ) : List
toSearch string
site string
cat string
return List
Example #1
0
        public virtual void btnSearchClicked(object sender, EventArgs args)
        {
            ProductUserControl productUserControl = (ProductUserControl)LoadControl("~/ProductUserControl.ascx");

            productUserControl.ListCurrency = ms.GetCurrency();
            productUserControl.SearchItems  = ms.Search(textInput.Text, DDLsites.SelectedItem.Value, DDLcategories.SelectedItem.Value);
            resultsPlaceHolder.Controls.Add(productUserControl);
        }
Example #2
0
        private void PerformSearch()
        {
            ProductUserControl productUserControl = PUC;

            productUserControl.ListCurrency = ms.GetCurrency();
            productUserControl.SearchItems  = ms.Search(textInput.Text, "MLU", Category);
            foreach (Product p in productUserControl.SearchItems)
            {
                p.in_whishlist = Handler.IsProductInWishList(p.id);
            }
            PUC.BindRepeater();
        }