Support

Kom i kontakt med vår kundtjänst, lär dig allt via vår SDK eller ladda ner den senaste uppdateringen.

Content Type Validation

2010-09-07 11:36:05 Jens

How do I set a field to be required?

All replies

  • 2010-09-07 11:37:24 Magnus Krona

    Just add the Required attribute to the property:

    [Required]
    public string MyProp {get; set;}