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
You're using it the wrong way.
Use EditorFor in View:
@Html.LabelFor(m => m.Email) @Html.EditorFor(m => m.Email)
In model, add the [DataType( DataType.EmailAddress )] Data Annotations property:
[DataType( DataType.EmailAddress )]
[DataType( DataType.EmailAddress )] public string Email { get; set; }