I am using ASP.NET MVC 3 TextBoxFor in a form and would like to use type=\"email\" for easier input for at least some mobile devices but cannot find how to set it using TextBoxF
[StringLength(50)] [DataType(DataType.EmailAddress, ErrorMessage = "Invalid Email Address")] public string EmailAddress { get; set; }
Try to add this. I think it works.