jayakumar

jayakumar

  • NA
  • 1
  • 913

Data Annotation- validation

Sep 22 2014 3:32 AM
Hi, im using VS2012 
i like to know how to use Data Annotation namespace in (ASPX UI) ?
how to call from data layer to UI layer for validation each field ?
 
example:
 
sample.cs
 
[Required, StringLength(100), Display(Name = "Name")]
public string Name { get; set; }
 
How to call this field to validate In ASPX ? UI
pls help 
 

Answers (1)