Hi,
I have added a resourcefile named language.resx to my App_GlobalResources folder, which enables me to access strings like App_GlobalResoureces.Language.MyString. How do I make this dynamic? So if I have a string called ResourceID, how do I pull the correct resource from the resource file?
so far I tried this:
string s = "MyString";
System.Resources.ResourceManager = new System.Resources.ResourceManager("App_GlobalResources.Language", System.Reflection.Assembly.GetExecutingAssembly()); string lang = mngr.GetString(s);
but this is not working (it says it cannot find the namespace or something).
It has been suggested to use a database for this, but I dont want this since its just a couple of enums I want to translate.