예제 #1
0
        /// <summary>
        /// Bind Qualification grid
        /// </summary>
        private void BindGrid()
        {

            objDepartmentLookup = new DepartmentLookupDal();
            DataSet dsDepartment = objDepartmentLookup.GetDepartment("");
            radgrdDepartment.DataSource = dsDepartment;
            radgrdDepartment.DataBind();
            ViewState[vsDepartment] = dsDepartment;

        }
예제 #2
0
        protected void acbDepartment_SearchClick(object sender, EventArgs e)
        {
            try
            {

                objDepartmentLookup = new DepartmentLookupDal();
                DataSet dsDepartment = objDepartmentLookup.GetDepartment(acbDepartment.SearchTextBox.Text);
                radgrdDepartment.DataSource = dsDepartment;
                radgrdDepartment.DataBind();
                ViewState[vsDepartment] = dsDepartment;
                Reset();
            }
            catch (Exception ex)
            {
                bool rethrow = ExceptionPolicy.HandleException(ex, DALHelper.DAL_EXP_POLICYNAME);
                if (rethrow)
                { throw ex; }
            }

        }