This question is locked. New answers and comments are not allowed.
Hi all.
I use a customize validation attribute in my model. It is inherited from StringLengthAttribute, only specified resource file to support multiply language. But I seem in insert popup windows. There encounter a strange error "Error! The requested URL returned 404 - Not Found". Who know how to handle it?
I use a customize validation attribute in my model. It is inherited from StringLengthAttribute, only specified resource file to support multiply language. But I seem in insert popup windows. There encounter a strange error "Error! The requested URL returned 404 - Not Found". Who know how to handle it?
public class StringLengthMLAttribute : StringLengthAttribute { public StringLengthMLAttribute(int maximunLength) : base(maximunLength) { ErrorMessageResourceName = "ErrorStringLength"; ErrorMessageResourceType = typeof(Messages); } }[KnownType(typeof(Project))] public class Project { [ScaffoldColumn(false)] public System.Guid id { get; set; } [Display(Name = "ProjectCode", ResourceType = typeof(LanguageDictionary))] [StringLengthML(1)] public string project_cd { get; set; } ......