Ejemplo n.º 1
0
        private void populateDdlHalls()
        {
            DaoHall daoHall = new DaoHall();

            ddlHalls.DataSource     = daoHall.getAllHalls();
            ddlHalls.DataTextField  = "Code";
            ddlHalls.DataValueField = "HallId";
            ddlHalls.DataBind();

            ddlHalls.Items.Insert(0, new ListItem("Select Hall", "0"));
            ddlHalls.SelectedIndex = 0;

            ddlCourses.Items.Insert(0, new ListItem("Select Hall", "0"));
        }
Ejemplo n.º 2
0
        public List <Hall> getAllHalls()
        {
            DaoHall daoHall = new DaoHall();

            return(daoHall.getAllHalls());
        }