Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. @model decimal?
  2. @{
  3. var attrs = ViewData;
  4.  
  5. if (ViewData["type"] == null)
  6. {
  7. attrs.Add("type", "number");
  8. }
  9. }
  10.  
  11. @Html.TextBoxFor(m => m, attrs)
  12.  
  13. @model int?
  14. @Html.Partial("~/Views/Shared/EditorTemplates/Decimal.cshtml", Model)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement