protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SongList.DataBind(); if (SongName != null) { SongList.SelectedValue = SongName; } } }
private void showSetDetails() { SongList.DataBind(); var currentSet = OpenChords.Entities.Set.loadSet(SetList.SelectedSet); SongsInSetList.CurrentSet = currentSet; SongsInSetList.DataBind(); setUpAndDownButtons(); pnlControls1.Visible = true; pnlControls2.Visible = true; SongsInSetList.Visible = true; SongList.Visible = true; pnlButtons.Visible = true; }