protected override void OnPageDestroy(int newWindowId) { // Get Current State of controls GetControlStates(); // Apply Configuration changes ApplyConfigurationChanges(); // Save Settings settings.Save(settings.cXMLSectionVideo); }