Posted by BottOm on October 2, 2007
The following steps are pretty easy. In Part 1 I explained how to set up the MasterPage and other pages by creating a BasePage.vb file and using a cookie and sessionobject. Your site should now be ready to use localization.
Part 2 is about adding resourcefiles and using those resources on the different pages (including your MasterPage).
Haven’t read Part 1? Then you have missed something!
Step 1. Folders for your resources
In your solution, you can have 2 different resourcefolder: App_GlobalResources and App_LocalResources. You can add them by rightclicking the solutionfile and choosing “Add ASP.NET Folder”.
Read the rest of this entry »
Posted in Tutorials, Visual Studio | Tagged: .NET, ASP, global.asax, localization, masterpage, Session, vb, Web Developer | 8 Comments »
Posted by BottOm on September 30, 2007
– This tutorial is based on several tutorials / workarounds found on the web. –
The Problem:
When using localization you must override the InitializeCulture() method of a page. As seen on the msdn-tutorial: How Do I: Create a Multi-Lingual Site with Localization? (Around the ninth minute).
Apparently you cannot override the InitalizeCulture() method in a MasterPage. Howcome? It derives from UserControl instead of the common WebForms’ System.Web.UI.Page and does not support the InitializeCulture() method.
The Solution:
Read the rest of this entry »
Posted in Tutorials, Visual Studio | Tagged: .NET, ASP, global.asax, localization, masterpage, Session, vb, Web Developer | 4 Comments »