2
I created my class with the guy int
[Required(ErrorMessage = "Preencha o Numero")]
[DisplayName("Numero")]
public int Number { get; set; }
and so on Layout generated these little arrows, how do I remove the little arrows?
Code of view
:
<!--Number-->
<div class="alinhado col-md-4">
<div class="form-group">
<div class=" alinhadoLabel">
@Html.LabelFor(model => model.Number,
htmlAttributes: new { @class = "control-label" })
</div>
<div class="alinhadoEditor">
@Html.EditorFor(model => model.Number,
new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Number, "",
new { @class = "text-danger" })
</div>
</div>
</div>
<!--End Number-->
This notation occurs naturally because you are using integers when defining your fields. Arrows allow your user to easily increment or decrease the field value. Not an ASP.NET MVC feature itself or Razor, but HTML5 functionality.
– Leonel Sanches da Silva