1
When you use this kind of field he despises ValidationMessageFor
?
In class
[Required(ErrorMessage = "Informe o seu login.")]
[DataType(DataType.EmailAddress, ErrorMessage = "Por favor insira ...")]
[StringLength(50, ErrorMessage = "O número de caracteres permitidos é 50.")]
public string login { get; set; }
On the form
@Html.TextBoxFor(x => x.login, new { placeholder =
@Projeto.WEB.Celular.Resources.HomeText.txtRecuperaSenha,
@class = "form-control input-lg", type = "email", })
@Html.ValidationMessageFor(x => x.login)
I believe that’s not it, see that I have the Datatype
– Harry
I made the example, see in my question that is following the model, even so it uses the standard in English
– Harry
The message does not agree with [Datatype(Datatype.Emailaddress, Errormessage = "Please enter ...")]
– Harry
yes, but I think it’s okay, because Resources only has the text that’s inside the input
– Harry
OK, yet I thank you
– Harry