protected void ButtonEditTab_OnClick(object sender, EventArgs e) { // Hide the Save button and Show the SaveOnEdit button. this.buttonSave.Visible = false; this.buttonSaveOnEdit.Visible = true; // Show the Tab panel this.panelTabItem.Visible = true; // Find the Tab selected to Edit, and set the Title and Content Text box values. TabData selectedLink = this.TabList.First(tab => tab.Title == this.dropDownConfiguredTabs.SelectedItem.Text); this.textBoxTitle.Text = selectedLink.Title; this.htmlBody.Text = selectedLink.Content; }