Use the following code to set width or any html attributes like style, class, etc. to Html.TextBoxFor html helper.
@Html.TextBoxFor(m => m.Email, new { Class = "mystyle" })
@Html.TextBoxFor(m => m.Email, new { Class = "mystyle" })
Blog for sharing my programming experience and share my codes
Comments
Post a Comment