Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Data Annotation - .NET Framework

RSS
Modified on Fri, Aug 19, 2011, 1:05 PM by Administrator Categorized as ASP·NET Web Forms, ·Net Framework
The following attributes require the System.ComponentModel or System.ComponentModel.DataAnnotations namespaces.

AttributeDescription
DisplayName("label")Designates the text to be displayed via the Html.LabelFor helper
Range(min, max)Specifies a valid range of values for the field
RequiredMarks a field as required a non-null, non-zero-length value
StringLength(maxLength)Specifies the maximum allowable length for a string field

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2018, Patrick Jasinski.