Mvc 4 email attribute
Email Address Attribute Email Address Attribute Email Address Attribute Email Address Attribute Class Definition. Namespace: Assemblies:Email address validation using ASP. NET MVC data type attributes. I use MVC 3. An example of email address property in one of my classes is: What namespace is your Email attribute in? Or is it a custom attribute? User Nov 26 '13 at 17: 17. 5. MVC 4 uses [EmailAddress mvc 4 email attribute
EmailAddress attribute will mark as valid the [email protected] because it is a completely valid email address, so there is nothing wrong with that method. Consider the example [email protected] for example. If it is not suits you then you can use regular expression ti set your own rule for validation.