private void DoSearchCampaign() { List <ProductData> result = null; if (rbSearchByCombo.Checked) { result = SlmScr003Biz.SearchCampaignNew(cmbProductGroup.SelectedItem.Value, cmbProduct.SelectedItem.Value, cmbCampaign.SelectedItem.Value); } else { result = SlmScr003Biz.SearchCampaignNew(txtFullSearchCampaign.Text.Trim()); } BindGridview((SLM.Application.Shared.GridviewPageController)pcGridCampaign, result.ToArray(), 0); gvCampaign.Visible = true; upPopupSearchCampaign.Update(); }
protected void PageSearchChange(object sender, EventArgs e) { try { List <ProductData> result = null; if (rbSearchByCombo.Checked) { result = SlmScr003Biz.SearchCampaignNew(cmbProductGroup.SelectedItem.Value, cmbProduct.SelectedItem.Value, cmbCampaign.SelectedItem.Value); //SlmScr003Biz.SearchCampaign } else { result = SlmScr003Biz.SearchCampaignNew(txtFullSearchCampaign.Text.Trim()); // SlmScr003Biz.SearchCampaign } var pageControl = (SLM.Application.Shared.GridviewPageController)sender; BindGridview(pageControl, result.AsEnumerable().ToArray(), pageControl.SelectedPageIndex); } catch (Exception ex) { string message = ex.Message; _log.Debug(message); AppUtil.ClientAlert(Page, message); } }