Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. [Phone]
  2. [Display(Name = "Work Phone")]
  3. [DisplayFormat(DataFormatString = "{0:###-###-####}", ApplyFormatInEditMode = true)]
  4. public string WorkPhone { get; set; }
  5.  
  6. @Html.EditorFor(model => model.WorkPhone, new { htmlAttributes = new { @class = "form-control" } })
  7.  
  8. @Html.EditorFor(model => model.WorkPhone, "{0:###-###-####}", new { htmlAttributes = new { @class = "form-control" } })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement