ProfileSection::AutomaticSaveEnabled Property
Gets or sets a value that determines whether changes to user-profile information are automatically saved on page exit.
Assembly: System.Web (in System.Web.dll)
[ConfigurationPropertyAttribute(L"automaticSaveEnabled", DefaultValue = true)] public: property bool AutomaticSaveEnabled { bool get (); void set (bool value); }
Property Value
Type: System::Booleantrue if profile information is automatically saved on page exit; otherwise, false. The default is true.
When the AutomaticSaveEnabled property is false, changes to individual profiles are not saved unless the Save method of the ProfileCommon class is called in code. When the AutomaticSaveEnabled property is true, the ProfileAutoSaving event also allows code to override the automatic save behavior.
The following code example shows how to use the AutomaticSaveEnabled property. This code example is part of a larger example provided for the ProfileSection class.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.