
PersistenceMode | 669
UI Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ Control(System.ComponentModel.IComponent, System.IDisposable,
IParserAccessor, IDataBindingsAccessor)
➝ BasePartialCachingControl ➝
PartialCachingControl
PersistChildrenAttribute
System.Web.UI (system.web.dll)
sealed class
This attribute indicates how the child controls of an ASP.NET Server Control should
be persisted at design time. If set to True, the child controls are persisted as nested inner
server control tags. If False, the properties of the control may be persisted as inner tags.
Hierarchy
System.Object ➝ System.Attribute ➝ PersistChildrenAttribute
Valid On
Class
PersistenceMode
System.Web.UI (system.web.dll)
serializable
enum
This enumeration provides values for the PersistenceModeAttribute. PersistenceModeAttribute.
Attribute instructs ASP.NET to persist a property in a control’s HTML tag as an
attribute. This is the default and does not require the use of the PersistenceModeAttribute.
You can also use PersistenceModeAttribute.InnerDefaultProperty or PersistenceModeAttribute.EncodedInner-
DefaultProperty to designate a property as the inner content of control tag. Only one
property can be used in this way, and the only difference between these two options is
whether the ASP.NET framework will automatically perform HTML ...