void LoadEventLocations() { //bind repeater var list = new EventLocations().GetEventLocations(); rptEventLocation.DataSource = list; rptEventLocation.DataBind(); //show and hide items/actions and no items if (list.Count > 0) items.Visible = true; else items.Visible = false; }
/// <summary> /// This function save the qualification /// </summary> private void Save() { var eventLocation = new EventLocation { Location = txtEventLocation.Text, }; var id = new EventLocations().AddEventLocation(eventLocation); //clear text box and load qualifications txtEventLocation.Text = ""; //load qualifications LoadEventLocations(); }