Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Phone]
- [Display(Name = "Work Phone")]
- [DisplayFormat(DataFormatString = "{0:###-###-####}", ApplyFormatInEditMode = true)]
- public string WorkPhone { get; set; }
- @Html.EditorFor(model => model.WorkPhone, new { htmlAttributes = new { @class = "form-control" } })
- @Html.EditorFor(model => model.WorkPhone, "{0:###-###-####}", new { htmlAttributes = new { @class = "form-control" } })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement