private void BindGrid() { objCompetitorAgentMasterDal = new CompetitorAgentMasterDal(); DataSet dsAgent = objCompetitorAgentMasterDal.GetCompetitor(""); radgrdAgent.DataSource = dsAgent; radgrdAgent.DataBind(); ViewState[vsAgent] = dsAgent; }
protected void acbAgent_SearchClick(object sender, EventArgs e) { try { objCompetitorAgentMasterDal = new CompetitorAgentMasterDal(); DataSet dsAgent = objCompetitorAgentMasterDal.GetCompetitor(acbAgent.SearchTextBox.Text); radgrdAgent.DataSource = dsAgent; radgrdAgent.DataBind(); ViewState[vsAgent] = dsAgent; } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, DALHelper.DAL_EXP_POLICYNAME); if (rethrow) { throw ex; } } }