Exemplo n.º 1
0
        /// <summary>
        /// Bind UserRole grid
        /// </summary>

        private void BindGrid()
        {
            objuserRoleLookup = new UserRoleDal();
            DataSet dsUserRole = objuserRoleLookup.GetUserRole("");
            radgrdUserRole.DataSource = dsUserRole;
            radgrdUserRole.DataBind();
            ViewState[vsUserRole] = dsUserRole;

        }
Exemplo n.º 2
0
        protected void acbUserRole_SearchClick(object sender, EventArgs e)
        {
            try
            {

                objuserRoleLookup = new UserRoleDal();
                DataSet dsRole = objuserRoleLookup.GetUserRole(acbUserRole.SearchTextBox.Text);
                radgrdUserRole.DataSource = dsRole;
                radgrdUserRole.DataBind();
                ViewState[vsUserRole] = dsRole;
                Reset();
            }
            catch (Exception ex)
            {
                bool rethrow = ExceptionPolicy.HandleException(ex, DALHelper.DAL_EXP_POLICYNAME);
                if (rethrow)
                { throw ex; }
            }

        }