/// <summary> /// Bind Address grid /// </summary> private void BindGrid() { objAddressTypeLookup = new AddressTypeLookupDal(); DataSet dsAddress = objAddressTypeLookup.GetAddressType(""); radgrdAddress.DataSource = dsAddress; radgrdAddress.DataBind(); ViewState[vsAddress] = dsAddress; }
protected void acbAddress_SearchClick(object sender, EventArgs e) { try { objAddressTypeLookup = new AddressTypeLookupDal(); DataSet dsAddress = objAddressTypeLookup.GetAddressType(acbAddress.SearchTextBox.Text); radgrdAddress.DataSource = dsAddress; radgrdAddress.DataBind(); ViewState[vsAddress] = dsAddress; } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, DALHelper.DAL_EXP_POLICYNAME); if (rethrow) { throw ex; } } }