Using Web.config File for Web Forms Globalization,globalization settings of the application

In Asp.Net Web Forms  has a configuration files,which is know as  Web.config,which is used to provide settings for each Web Forms page in the same directory and its subdirectory.

To set the web forms globalization setting we use <globalization /> element tag in we.config file.


<configuration>
      <system.web>
<!--we use this section for setting globalization setting-->

            <globalization     fileEncoding="utf-8"
                               requestEncoding="utf-8"
                               responseEncoding="utf-8"
                               culture="en-US"
                               uiCulture="de-DE"
        />
      </system.web>
</configuration>



we can also specified all attributes of globalization in the @page directive only fileEncoding attribute  need to set  in web.config.if fileEncoding is set  at the @page directive it will show exception.
Tags: , , ,

Join Us!