void cmdUpdate_Click(object sender, EventArgs e) { if (_providerSettingsControl != null) { var settings = _providerSettingsControl.SaveSettings(); foreach (var setting in settings) { ExtensionUrlProviderController.SaveSetting(_providerId, ModuleContext.PortalId, setting.Key, setting.Value); } } Response.Redirect(Globals.NavigateURL(ModuleContext.PortalSettings.ActiveTab.TabID)); }
void cmdUpdate_Click(object sender, EventArgs e) { if (!this.Page.IsValid) { return; } if (_providerSettingsControl != null) { var settings = _providerSettingsControl.SaveSettings(); foreach (var setting in settings) { ExtensionUrlProviderController.SaveSetting(_providerId, ModuleContext.PortalId, setting.Key, setting.Value); } } if (DisplayMode != "editor" && DisplayMode != "settings") { Response.Redirect(_navigationManager.NavigateURL(ModuleContext.PortalSettings.ActiveTab.TabID)); } }