コード例 #1
0
        protected void DataBind_CommunityPartnerPeople()
        {
            CommunityPartnersPeople ccp = new CommunityPartnersPeople();

            ddlSupervisor.DataSource     = ccp.GetAllCommunityPartnerPeople();
            ddlSupervisor.DataTextField  = "FirstName";
            ddlSupervisor.DataValueField = "CPPID";
            ddlSupervisor.DataBind();
        }
コード例 #2
0
        private void DataBind()
        {
            CommunityPartnersPeople cpp = new CommunityPartnersPeople();

            cpp.CPID = Convert.ToInt32(Session["CPID"]);
            List <CommunityPartnersPeople> cpplist = cpp.GetAllCommunityPartnerPeople();

            gvSupervisor.DataSource = cpplist;
            gvSupervisor.DataBind();
        }