conditional inclusion of a namespace
-
Hi all, I m working on a multilanguage project in ASP.net C# v2.0. I created a namespace "language.eng" and defined some text string within it. Now, I want to include it after checking the configuration is set to language english. Let say, if(Session["lang"].tostring() == "english") then I want to include this namespace so that I can use the strings value... Same, if(Session["lang"].tostring() == "spanish") then I want to include "language.spenish" namespace. How can I do this. Please help. Thanks in Advance. Suman Singh
-
Hi all, I m working on a multilanguage project in ASP.net C# v2.0. I created a namespace "language.eng" and defined some text string within it. Now, I want to include it after checking the configuration is set to language english. Let say, if(Session["lang"].tostring() == "english") then I want to include this namespace so that I can use the strings value... Same, if(Session["lang"].tostring() == "spanish") then I want to include "language.spenish" namespace. How can I do this. Please help. Thanks in Advance. Suman Singh
-
I'm curious that why you don't simply use the resource files to contain the language-specific strings so that it can be automatically loaded when you determine the culture. Localizing ASP.NET Web Pages Using Resources [^]
Hello minhpc_bk, Thanks for your answer. Actually, I wanted to make it admin driven.. or it may be that there will be a dropdown in user section to choose a language and user can change the language anytime... ex : http://www.shareit.com/101343-1.html[^] Can you please help. Suman Singh