Inheritance: System.Web.UI.UserControl
Esempio n. 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);
        }
Esempio n. 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();
        }