使用基类在asp.net中开发多语言应用程序 [英] develop multilingual application in asp.net using base class

查看:80
本文介绍了使用基类在asp.net中开发多语言应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用全球化在asp.net中开发多语言网站。我想在类中编写代码并在每个页面中访问此类。根据这个类,所有内容都应该改变各自的语言。我不知道怎么能这样做。请帮忙。



提前感谢。

解决方案

首先阅读全球化。 [ ^ ]您需要为每种语言设置一组资源文件,并根据用户文化或选定的文化设置当前的线程文化。

check

在ASP.NET中使用全球化和本地化 [ ^ ]

ASP.NET中的全球化 [ ^ ]

i want to develop multilingual website in asp.net using globlization. i want to write code in a class and access this class in every page. according to this class all the content should change in respective language. i don't know how can i do this. please help.

thanks in advance.

解决方案

Read about globalization first.[^] you need set of resource files for each language and set the current thread culture based on user culture or selected culture.
check
Using Globalization and Localization in ASP.NET[^]
Globalisation in ASP.NET[^]


这篇关于使用基类在asp.net中开发多语言应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆