protected void btnBrowseProducts_Click(object sender, ImageClickEventArgs e) { pnlProductPicker.Visible = !pnlProductPicker.Visible; if (NewSkuField.Text.Trim().Length > 0) { if (pnlProductPicker.Visible) { ProductPicker1.Keyword = NewSkuField.Text; ProductPicker1.LoadSearch(); } } }
protected void btnAdd_Click(object sender, EventArgs e) { msg.ClearMessage(); if (ProductPicker1.SelectedProducts.Count == 0) { msg.ShowInformation(Localization.GetString("NoProducts")); } foreach (var s in ProductPicker1.SelectedProducts) { HccApp.CatalogServices.AddProductToCategory(s, BvinField.Value); } LoadCategory(); ProductPicker1.LoadSearch(); }
protected void btnAdd_Click(object sender, EventArgs e) { msg.ClearMessage(); if (ProductPicker1.SelectedProducts.Count == 0) { msg.ShowInformation("Please select products to add first."); } foreach (var s in ProductPicker1.SelectedProducts) { HccApp.CatalogServices.AddProductToCategory(s, BvinField.Value); } LoadCategory(); ProductPicker1.LoadSearch(); }