localization problem..

M

micky

i'd like to use localization programatically
at first, i using like this...

protected override void InitializeCulture()
{
String selectedLanguage = "en-US";
UICulture = selectedLanguage;
Culture = selectedLanguage;

Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(selectedLanguage);
Thread.CurrentThread.CurrentUICulture = new
CultureInfo(selectedLanguage);
base.InitializeCulture();
}

this code have to write in cs file of aspx page but i already use master
page and usercontrols..

and if i use it i may be write it all of pages that's why i want to use this
only 1 page but not aspx,

i'd like to use this mater page...or usercontrol page

how should i do?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,818
Messages
2,569,727
Members
45,664
Latest member
Phil79581

Latest Threads

Top