コード例 #1
0
        private void BindGrid()
        {
            RoleBiz pbiz = new RoleBiz();

            gvProductRole.DataSource = pbiz.GetListRole();
            gvProductRole.DataBind();
        }
コード例 #2
0
        private void InitData()
        {
            RoleBiz   rBiz = new RoleBiz();
            PersonBiz pBiz = new PersonBiz();

            ddlPeople.Items.Clear();
            //ddlPeople.DataSource = pBiz.GetListPerson(txtFirstName.Text.TrimStart().TrimEnd(), txtLastName.Text.TrimStart().TrimEnd());
            //ddlPeople.DataBind();
            ddlRole.DataSource = rBiz.GetListRole();
            ddlRole.DataBind();
            BindingCatalogRole();
        }