Beispiel #1
0
    private void PopulateVenueGridView()
    {
        Venues        venue     = new Venues(_connString);
        List <Venues> tblVenues = venue.GetVenues();

        VenueGridView.DataSource = tblVenues;
        VenueGridView.DataBind();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Venues       v  = new Venues();
        List <Venue> vs = v.GetVenues();

        DataList1.DataSource = vs;
        DataList1.DataBind();
    }
 IDictionary <string, EventVenue> GetVenues()
 {
     if (null == _cacheVenues)
     {
         lock (_sync)
         {
             if (null == _cacheVenues)
             {
                 _cacheVenues = Venues.GetVenues();
             }
         }
     }
     return(_cacheVenues);
 }
Beispiel #4
0
        private void PopulateVenues(string val)
        {
            Venues        venues    = new Venues(_connString);
            List <Venues> lkpVenues = venues.GetVenues();

            foreach (Venues venue in lkpVenues)
            {
                ComboBoxItem item = new ComboBoxItem();
                item.Text  = venue.Venue_Name;
                item.Value = venue.Venue_ID;

                cboVenue.Items.Add(item);
                if (venue.Venue_ID.ToString() == val)
                {
                    cboVenue.Text = venue.Venue_Name;
                }
            }
        }