Gaurav Raj

Gaurav Raj

  • NA
  • 475
  • 88.1k

EditorFor HTML helper,textbot does not take class in MVC

Sep 12 2018 1:59 AM
<div class="form-group">
@Html.EditorFor(model => model.Email_Id, new { htmlattributes = new { @class = "form-control" } })
@Html.TextBoxFor(model => model.Email_Id, new { @class = "control-label col-md-2" })
@Html.ValidationMessageFor(model => model.Email_Id)
</div>

Answers (3)