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

Using code explain Configuration Management

0 Answers  


What are different templates available in Repeater,DataList and Datagrid ?

1 Answers  


what is loosely coupled solution? How it can be used?

0 Answers   Siebel,


How do we access view state value of this page in the next page?

0 Answers   MindCracker,


What is the concept of view state in asp.net?

0 Answers  






What are different types of api?

0 Answers  


Where the viewstate is stored after the page postback?

0 Answers  


What is the difference between managed and unmanaged code? *******

2 Answers   Patni,


How to implement form based authentication in asp.net application?

0 Answers  


How many Garbage Collectors are there for one Application or one Page

1 Answers   Emphasis,


How Clustered Index and Non clustered index stored on SQL server?

2 Answers   TCS,


if we establish the cinnection with connection string tag in web.config file,can i go for encrypt and decrypt with that?

1 Answers  


Categories