[Mono-dev] ASP.NET MVC 3 with Razor on Mono 2.10.1 ?

nuber19 nuber19 at hotmail.com
Mon Jul 9 07:27:52 UTC 2012


Yuri wrote
> 
> Seems the ErrorMessage has a placeholder {2} which I've changed to {1}
> below in the RegistrationModel
> 
>         [Required]
>         [StringLength(100, ErrorMessage = "The {0} must be at least *{1}*
> characters long.", MinimumLength = 6)]
>         [DataType(DataType.Password)]
>         [Display(Name = "Password")]
>         public string Password { get; set; }
> 

This solved my issue. The error message format is in incorrect format.
Thanks.

--
View this message in context: http://mono.1490590.n4.nabble.com/ASP-NET-MVC-3-with-Razor-on-Mono-2-10-1-tp3486560p4650354.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list