What is the difference between Culture and UICulture?

前端 未结 4 1033
眼角桃花
眼角桃花 2020-11-30 20:14

Could someone give me a bit more information on the difference between Culture and UICulture within the .NET framework? What they do and when to us

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 21:06

    Just a small matter to consider in addition to @Vache's awesome explanation: You can set both UICulture and Culture at (page level and application level).

    In order to set them at application level, simply add globalization session in web.config

    e.g.

    And to set them at the page level, which is good to add on a specific (individual) page, set the Culture and UICulture attributes within @ page directive

    e.g. <%@ Page UICulture="es" Culture="es-MX" %>

提交回复
热议问题