可以使用资源文件来实现,通过IHttpModule来设置资源。void application_PreRequestHandlerExecute(object sender, EventArgs e) { Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(2052); Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(2052); }
回复2、3楼: 感谢回复,但是头儿让我研究用WebGrease实现,好烦
楼主说的是这个吗:http://webgrease.codeplex.com/有没有搞错?看一下这个项目的说明: WebGrease is a suite of tools for optimizing javascript, css files and images.在asp.net mvc项目中,这个是必须的,用来压缩和捆绑CSS以及javascript代码,没听说过用这个做多语言网站
{
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(2052);
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(2052);
}
感谢回复,但是头儿让我研究用WebGrease实现,好烦
WebGrease is a suite of tools for optimizing javascript, css files and images.在asp.net mvc项目中,这个是必须的,用来压缩和捆绑CSS以及javascript代码,没听说过用这个做多语言网站