protected void SaveButton_Click(object sender, EventArgs e) { UserRegistration_Module userRegModule = UserRegistration_Module.Get(this.ModuleId); userRegModule.ConfirmationPageNavigationId = ConfirmationPage.SelectedNavigationId; userRegModule.NotifyEmailAddress = NotifyEmail.Text.Trim(); userRegModule.Save(); Redirect(this.PageNavigationId); }
/// <summary> /// Checks that the custom module data exists. If the custom module /// object cannot be retrieved (e.g., this is a new module), then a /// new module object is created using the module id assigned by the /// CMS. /// </summary> private void EnsureModule() { UserRegistration_Module userRegModule = UserRegistration_Module.Get(this.ModuleId); if (null == userRegModule) { userRegModule = new UserRegistration_Module(); userRegModule.ModuleId = this.ModuleId; userRegModule.Save(); } }