Resource File
-
Dear All, How to change different languages for dynamic value not static, values come from database in asp.net 3.5
Farogh Haider Web developer
-
Dear All, How to change different languages for dynamic value not static, values come from database in asp.net 3.5
Farogh Haider Web developer
Please clarify your question
I know the language. I've read a book. - _Madmatt
-
Dear All, How to change different languages for dynamic value not static, values come from database in asp.net 3.5
Farogh Haider Web developer
Does this article help?
Yusuf May I help you?
-
Dear All, How to change different languages for dynamic value not static, values come from database in asp.net 3.5
Farogh Haider Web developer
I guess you want to load the texts shown on your pages from a database. Normally, localization uses resource files, and then things are handled by the resource manager. Hence, you will have to implement lots of things on your own. First, determine the language desired by the user (e.g. accepted languages in the header of the web request, or implied by a selection on your web site) - do not forget a fallback if that language is not available in your database. Set CurrentUICulture to the appropriate value - that will do a lot of formatting for you. For all the elements on your page, load the texts from the database by querying each one. Then set the element's text to that value.