I have a textbox where I setup the class attibute css rounded.
I use this code:
@Html.TextBoxFor(m => m.level, new { @class = "form-control rounded", @placeholder = "Level" })
When I run the browser renderizer this as:
<input class="form-control rounded" id="level" name="level" placeholder="Level" type="text" " />
If I change to:
@Html.EditorFor(m => m.level, new { @class = "form-control rounded", @placeholder = "Level" })
The browser rederizer as:
<input class="text-box single-line" id="level" name="level" placeholder="Level" />
There are a way to use rounded with @Html.EditorFor?
What is the benefit to use @Html.EditorFor?
EditorForis for when you create a EditorTemplate and you want to reuse that partial view instead of using the default editor for the property type