Gaurav Raj

Gaurav Raj

  • 1.4k
  • 475
  • 34k

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)