How to apply input which has a type email to HTML Helper in Asp.net MVC3 Razor. For example:
The below code has worked for me perfectly. By default @Html.TextBoxFor
creates but specifying the
type="email"
property makes it
@Html.TextBoxFor(model => model.EmailId, new { @class = "popinputbox", placeholder = "Email ID", type = "email" })
@Html.ValidationMessageFor(model => model.EmailId, "", new { @class = "errormsg" })
The problem gets solved. BINGO !!