示例#1
0
        protected void Load_University()
        {
            University_BLL universityBLL = new University_BLL();
            DataTable      dtUniversity  = new DataTable();

            dtUniversity = universityBLL.Load_University();

            ddlUniversity.DataSource    = dtUniversity;
            ddlUniversity.DataTextField = "Name";
            ddlUniversity.DataTextField = "ID_University";
            ddlUniversity.DataBind();

            ddlUniversity.Items.Insert(0, new ListItem("-----Select the University-----", "0"));
        }
示例#2
0
        public void Load_University()
        {
            //Instance of BLL layer
            University_BLL university_BLL = new University_BLL();

            List <University> listUniversities = new List <University>();

            listUniversities = university_BLL.Load_University();

            ddlUniversity.DataSource     = listUniversities;
            ddlUniversity.DataTextField  = "Name";
            ddlUniversity.DataValueField = "ID_University";
            ddlUniversity.DataBind();

            ddlUniversity.Items.Insert(0, new ListItem("-----Select the University-----", "0"));
        }
示例#3
0
        public void Load_University()
        {
            //Instance of BLL layer
            University_BLL university_BLL = new University_BLL();

            DataTable dtUniversity = new DataTable();

            dtUniversity = university_BLL.Load_University();

            ddlUniversity.DataSource     = dtUniversity;
            ddlUniversity.DataTextField  = "Name";
            ddlUniversity.DataValueField = "ID_University";
            ddlUniversity.DataBind();

            ddlUniversity.Items.Insert(0, new ListItem("-----Select the University-----", "0"));
        }