示例#1
0
        private void LoadVenueList()
        {
            Venues vnues = new Venues();

            vnues.GetAll();

            vnues.Sort(delegate(Venue p1, Venue p2)
            {
                return p1.VenueName.CompareTo(p2.VenueName);
            });

            ddlVenues.DataSource = vnues;
            ddlVenues.DataTextField = "venueName";
            ddlVenues.DataValueField = "venueID";
            ddlVenues.DataBind();
            ddlVenues.Items.Insert(0, new ListItem(unknownValue));
            // Utilities.General.SortDropDownList(ddlVenues);
        }