Error message using Data Annotations but in ErrorMessage I want to pass variable string but when I do that it gives error when project is build.
string errorMessage="Something happened";
[Remote("IsTimeValid", "Account", AdditionalFields = "TaskDate,TodoID", ErrorMessage =errorMessage)]
public string Time{get;set;}
Is there any way to show variable value in ErrorMessages?