| ValidationPropertyAttribute | |
| System.Web.UI (system.web.dll) | sealed class |
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 sealed class ValidationPropertyAttribute : Attribute {
// Public Constructors
public
ValidationPropertyAttribute (string
name );
// Public Instance Properties
public string
Name {get; }
}
Hierarchy
System.Object
System.Attribute
ValidationPropertyAttribute
Valid On
Class