0
yuemy@sph.com.sg created
How to I Localize Text in Data Annotation of View Models or DTO?
example below
[Required]
[StringLength(256)]
[Placeholder("Enter Category Code")]
[Display(Name = "Code")]
[PageRemote(
ErrorMessage = "Code already exists",
HttpMethod = "get",
PageHandler = "ValidateCode"
)]
public string CategoryCode { get; set; }
How to localize the Placehoder text, the PageRemote validation error message and the required error message?
2 Answer(s)
-
1
-
0
This question has been automatically marked as stale because it has not had recent activity.