コード例 #1
0
        /// <summary>
        /// Bind Address grid
        /// </summary>

        private void BindGrid()
        {
            objAddressTypeLookup = new AddressTypeLookupDal();
            DataSet dsAddress = objAddressTypeLookup.GetAddressType("");
            radgrdAddress.DataSource = dsAddress;
            radgrdAddress.DataBind();
            ViewState[vsAddress] = dsAddress;

        }
コード例 #2
0
        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; }
            }
        }