Yogesh Bajpai
which namespace is required in MVC for validation?
By Yogesh Bajpai in ASP.NET MVC on Apr 02 2013
  • Ashish Kumar Jaiswal
    Dec, 2016 6

    system.Componetmodel.dataanotation

    • 1
  • Ranjeet Patel
    Feb, 2014 20

    System.ComponentModel.DataAnnotations Namespace

    • 1
  • Rajkumar Rajigounder
    Apr, 2015 1

    System.ComponentModel.DataAnnotations Example : using System.ComponentModel.DataAnnotations; namespace SuperheroSample.Models { public class Superhero { [Required] public string Name { get; set; } public bool WearsCape { get; set; } } }

    • 0
  • Bhabani Prasad
    May, 2014 23

    System.ComponentModel.DataAnnotations

    • 0
  • Yashlok Kumar
    May, 2014 17

    System.ComponentModel.DataAnnotations

    • 0
  • Jignesh Trivedi
    Apr, 2014 14

    If you want to perform model validation using DataAnnotations Attributes, you must include System.ComponentModel.DataAnnotations name space. there are many DataAnnotation attributes are in MVC for validation Please refer below link for more details. http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations(v=vs.100).aspx

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS