AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageAttributeControl..::..SaveAndClose Method

Programmatic alternative to the toolbar's Save & Close click — runs OnValidateSave(String%)SaveDataToObject()()()()OnPreSave(AdvantageAttributeArgs, String%)SendAdvantageAttributesOnPostSave(AdvantageAttributeArgs, String%)Close(eAdvantageAttributeArgsAction). OnValidateSave and OnPreSave can abort the save; OnPostSave is notification-only (data already persisted).

Namespace:  AdvantageCMS.Core.Common.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


protected void SaveAndClose()

Remarks


As of 2026-05-03 this calls OnValidateSave(String%) directly. Tenants who overrode the obsolete ValidateSave(String%) instead of OnValidateSave(String%) will silently skip validation — migrate the override to OnValidateSave.