The [Email] attribute was going to be built into ASP.NET MVC 3 as it was in futures? So is it now available or not? I guess it is quite a dumb question but I've spent some time googling and didn't find any normal answer.

The compiler will tell you. If it compiles, it's built in.
–
CodoApr 30 '11 at 12:05

it compiles but doesn't provide any client side validation
–
Nazar GargolApr 30 '11 at 12:14

I'm astonished it compiles. What's the full namespace of the EmailAttribute class? The attribute doesn't belong to MVC3 and it probably comes from a third party library using it for something completely different.
–
CodoApr 30 '11 at 12:17

1

it is an attribute from ComponentModel.DataAnnotations , looks like this: [DataType(DataType.EmailAddress, ErrorMessage = "Email is wrong")]
–
Nazar GargolApr 30 '11 at 12:28

yeah.. I ended up doing it the same way. the regexp is. but the reason I was asking is that I wanted my code to be clean. and now I'm adding this attributes that are obvious.
–
Nazar GargolApr 30 '11 at 12:25

That'll be because DataType attributes don't actually provide any sort of validation out of the box, which is what the OP was after. DataType attribute change the way that the HtmlHelper methods render model properties in templates.
–
keithl8041Nov 21 '12 at 17:12