News:
public class Player { public String Name { get; set; } public int LastScore { get; set; } public int HighScore { get; set; } }
You need to ensure that the custom formatting is applied to LastScore values when the HtmlHelper. DisplayForModel method is called for any view in the application that has a model of type Player. What should you do?
Rename Score.ascx to LastScore.ascx.
Move Score.ascx from the Views/Shared/DisplayTemplates folder to the Views/Player/DisplayTemplates folder.
Add the following attribute to the LastScore property.
[UIHint("Score")]
Add the following attribute to the LastScore property
[Display(Name="LastScore", ShortName="Score")]