ValidationPropertyAttribute.Name Property


Gets the name of the ASP.NET server control's validation property.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public string Name { get; }

Property Value

Type: System.String

The name of the validation property.

The following code example demonstrates using the ValidationPropertyAttribute class when creating a custom control.

public class MessageControl : Label
   private int _message = 0;
   public int Message
         return _message;
         _message = value;


.NET Framework
Available since 1.1
Return to top