public override void SyncChanges() { EnsureChildControls(); ScriptletPartEx displayPart = this.WebPartToEdit as ScriptletPartEx; if (displayPart != null) { this.Title = "Edit " + displayPart.Title; _ScriptletChoices.SelectedIndex = GetSelectedIndex(displayPart.Identifier, displayPart.ScriptletType); } }
public override bool ApplyChanges() { EnsureChildControls(); ScriptletPartEx displayPart = WebPartToEdit as ScriptletPartEx; if (displayPart != null) { displayPart.Identifier = _ScriptletChoices.SelectedItem.Text; displayPart.ScriptletType = _ScriptletChoices.SelectedItem.Value; //recreate control collection for changes displayPart.InternalCreateChildControls(); } return(true); }