I think this is a really simple question which for some reason i cannot think of how to do!
I have a view with the following:
<li>
<label>Job Title</label>
<%= Html.TextBox("JobTitle",Model.Person.JobTitle, new { type = "text", required = "required", placeholder = "Required" } ) %>
<%= Html.ValidationMessage("JobTitle","") %>
</li>
On submit if the field is not filled out a pop up "Please fill in this field" appears.
I want to customise this message to be "Please enter your job title"
I thought i would just need to change the Person.cs to:
/// <summary>
/// JobTitle
/// </summary>
[Required(ErrorMessage = "Please enter your Job Title")]
[StringLength(128, ErrorMessage = "JoBTitle maximum length is 128")]
public String JobTitle { get; set; }
but i can t think for the life of me what to do sorry!