Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I still can not find a way to use the U6 embedded dictionary to localize forms validation Message texts...
Here is the actual version, from a Model cs file.
class myFormModel{ [Required(ErrorMessage="Please enter your name")] public string FirstName { get; set; }}
How to localize that "Please enter your name" ??
if I am doing
[Required(ErrorMessageResourceName=umbraco.library.GetDictioanyItem("InvalidName"))]
Its giving me compilation error - An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type.
I am using Umbraco 6.0
This is actually a "bug" in the framework. I created a issue for it.
More information can be found in this post : http://our.umbraco.org/forum/templating/templates-and-document-types/39555-Surface-controller-and-data-annotations
ok .. thanks for reply Dave.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
localize validation message
Hi,
I still can not find a way to use the U6 embedded dictionary to localize forms validation Message texts...
Here is the actual version, from a Model cs file.
How to localize that "Please enter your name" ??
if I am doing
Its giving me compilation error - An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type.
I am using Umbraco 6.0
This is actually a "bug" in the framework. I created a issue for it.
More information can be found in this post : http://our.umbraco.org/forum/templating/templates-and-document-types/39555-Surface-controller-and-data-annotations
ok .. thanks for reply Dave.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.