Guest User

Untitled

a guest
Dec 15th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public class ClasseViewModel
  2. {
  3. [Required(ErrorMessage = "Campo Obrigatorio")]
  4. [Display(Name = "Campo Decimal")]
  5. public decimal? CampoDecimal { get; set; }
  6. }
  7.  
  8. @Html.RequiredLabelFor(model => model.CampoDecimal, htmlAttributes: new { @class = "control-label" })
  9. @Html.EditorFor(model => model.CampoDecimal, new { htmlAttributes = new { @class = "form-control" } })
  10. @Html.ValidationMessageFor(model => model.CampoDecimal, "", new { @class = "text-danger" })
Add Comment
Please, Sign In to add comment