/// <summary> /// Handles the Click event of the LinkButtonRemove control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void LinkButtonRemove_Click(object sender, System.EventArgs e) { System.Web.UI.WebControls.ListItem li = DicSingleValueCtrl.SelectedItem; if (li != null) { DicSingleValueCtrl.Items.Remove(li); //if (li.Value != "-1") { MetaDictionary dictionary = MetaDictionary.Load(MDContext, AttributeId); dictionary.Delete(int.Parse(li.Value)); } } }