我有一个多语言网站...
我在 Visual Studio 中为语言(en + 我的语言)制作了两个文件夹,并为每个文件夹制作了我的网站!
对于一个语言网站,我有一个课程可以改变文化和日历以适应我的文化,并在 Global.asax 中调用该课程,如下所示:
protected void Application_BeginRequest(object sender, EventArgs e)
{
myLanCultureAndCalendar.SetCultureAndCalendar();
}
但是对于多语言网站,我能对那门课做些什么呢?
意思是我应该在哪里为每种语言调用该类?
my pages are base on master and content pages
如你所知global.asax Application_BeginRequest runs First -> after that we have content page_Load -> and at last Master page_Load