ValidationPropertyAttribute

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



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net