Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Localization in ASP.NET 2.0
Subject:   using the page preinit method
Date:   2007-07-22 21:12:04
From:   Salvatore
There is actually no need to set the culture in page preinit method and then later run through the associated acrobatics to manually set individual control properties. There is a method of the page class InitializeCulture() where you can put the culture initialization code. Putting your code there will cause the page to pull the localized resources from the appropriate resource file (as opposed to the default resource file which is (initially) happening here). Also for more info on localization there is an article in the msdn library see -- .NET Development/Web Applications (ASP.NET)/Technical Articles/ASP.NET 2.0/ASP. NET 2.0 Localization....