How do you set language in web.cofig ?

Answers were Sorted based on User's Feedback



How do you set language in web.cofig ?..

Answer / ram

? To set the UI culture and culture for all pages, add a
globalization section to the Web.config file, and then set
the uiculture and culture attributes, as shown in the
following example:
<globalization uiculture="es" culture="es-MX" />
? To set the UI culture and culture for an individual page,
set the Culture and UICulture attributes of the @ Page
directive, as shown in the following example:
<%@ Page UICulture="es" Culture="es-MX" %>

Is This Answer Correct ?    11 Yes 0 No

How do you set language in web.cofig ?..

Answer / shenil tom

add a
<system.web>
<globalization uiculture="" culture="" />

in the web. config section

or set both through dynamic coding..

Eg:
set uiculture in InitializeCulture page method override.
protected override void InitializeCulture()
{
this.UICulture = "he";
}

Is This Answer Correct ?    10 Yes 0 No

How do you set language in web.cofig ?..

Answer / shaik mujahid ullah

Setting up a language are of 2 types

one is compilation language of webapplication for which
you can try with this code

<configuration>
<system.web>
<compilation defaultLanguage"VB"></compilation>
</system.web>
</configuration>

Second is regional / culture language it can be set with
the following code

<system.web>
<globalization uiCulture="en" culture="en-GB" />
<!-- more stuff-->
</system.web>

Is This Answer Correct ?    9 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

hi wrever i go thy r asking depth abt 3-tier architecture i.e, hw to deploy 3 layers into 3 servers i do nt have much idea on deployment. can any one send me the tips or code if u hav kindly mail me.

1 Answers   Wipro,


What is asp.net and its advantages?

0 Answers  


What is cookieless session id explain in brief?

0 Answers  


What is difference between response.redirect and server.transfer ?

2 Answers   Kalinga Software, Satyam,


If you are using two select queries and retrieving data. how do you access second query's result set using data reader?

1 Answers   Cap Gemini, Keane India Ltd, MindSquare,


What are Session states available and its Uses?

2 Answers   iLogic,


Differences between session state and Application state?

6 Answers  


What r new things introduced in ASP.NET 2.0 in comparision to ASP.NET 1.1

1 Answers  


What are the advantages of the code-behind feature?

0 Answers  


What is server components?

0 Answers  


What is the asp.net control toolkit?

0 Answers  


What is web api and why to use it?

0 Answers  


Categories