Globalization was defined in Web.config
:<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="pt-BR" uiCulture="pt-BR"/>
However, when I read Page.UICulture
, I get "Português (Brasil)" , I want to return the code "en-pt" . Is there any conversion method? Making if is not a solution I'd like to use.