Given a model with these data annotations:
public class Example
{
[Required]
[Display(Name = "Activity response")]
public string ActivityResponse { get; set; }
}
I would expect the model state error message to be "The Activity response field is required." Instead it is "The ActivityResponse field is required."
[kichalla] __Attached__ a katana selfhost repro.
Comments: @brheal: Just to clarify, this bug is about "DisplayAttribute" and its fixed for 5.1 release...are you referring to "Display" or "DisplayName" attribute?
public class Example
{
[Required]
[Display(Name = "Activity response")]
public string ActivityResponse { get; set; }
}
I would expect the model state error message to be "The Activity response field is required." Instead it is "The ActivityResponse field is required."
[kichalla] __Attached__ a katana selfhost repro.
Comments: @brheal: Just to clarify, this bug is about "DisplayAttribute" and its fixed for 5.1 release...are you referring to "Display" or "DisplayName" attribute?