Name

PersistenceMode

Synopsis

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.EncodedInnerDefaultProperty 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 encoding before persisting the value. Finally, PersistenceModeAttribute.InnerProperty persists the property as a nested tag inside the control tag.

Public Enum PersistenceMode
                  Attribute = 0
                  InnerProperty = 1
                  InnerDefaultProperty = 2
                  EncodedInnerDefaultProperty = 3
End Enum

Hierarchy

System.ObjectSystem.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) PersistenceMode

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.