Name
ValidationPropertyAttribute
Synopsis
This attribute specifies which property of a server control should be used for
validation. Typically, this is a property like Text
, Value
, or SelectedItem
. The ValidationPropertyAttribute
is used only when
you create custom controls; existing ASP.NET controls use it
intrinsically.
This attribute is applied to the class declaration, not a specific property.
You can
specify the property to validate through the attribute’s Name
property, as
in: <ValidationProperty("Text")>
.
Public NotInheritable Class ValidationPropertyAttribute : Inherits Attribute ' Public Constructors Public Sub New(ByVal name As String) ' Public Instance Properties Public ReadOnly Property Name As String End Class
Hierarchy
System.Object→System.Attribute→ ValidationPropertyAttribute
Valid On
Class
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.