2
I have a model like this:
[Display(Name = "Protocolos Abertos")]
public int ProtocolosId { get; set; }
I use in a Selectlist like value
, when I am going to do the Submit of a form the validation message is returned in different languages to localhost and to the homologation server.
to web.config
is configured:
<globalization culture="pt-BR" uiCulture="pt-BR" />
Is there any other configuration in the application to be performed to make this change from English to Portuguese?
OBS: I know it is possible to create customized error messages for the fields, but the default message is very useful.
This validation is that of the backend or frontend?
– Jéf Bueno
I believe it is in the frontend, because it does not even arrive at the method to treat the post.
– LP. Gonçalves
Utilise
@Html.DropDownListFor(model => model.ProtocolId, Model.ProtocolsList,"Selecione um protocolo", new { @id = "ProtocolId" })
when you are under "Select a protocol" there is no value inProtocolId
, what causes this message, because the same is the typeint
– LP. Gonçalves