Globalization Simple Steps 1. Generate Resource File Recommendations Tools directly generate. You can also use commands: A. B. TXT text file B.Resgen resources / mytext.txt resources / mytext.resources compile TXT files into resource files
2. Generate an affiliate resource file set with the Al command. Al / T: lib /embed:4trings.de.resources / Culture: de /out:myapp.resources.dll
3. Copy the generated DLL to the BIN directory of the web project, pay attention to the bin according to your set by the default resource file, other, according to culture, the corresponding directory is built in BIN, such as ZH-CHS, DE, then put the corresponding DLL in the established directory.
4. Conversation to establish the resourceManager to adjust data from the subsidiary resource file. Thread.currentthread.currentuicultuiculture = New CultureInfo ("de");
Assembly a = askEMBLY.LOAD ("DYH"); ResourceManager M = New ResourceManager ("DYH", A); Response.write ("address")); Note: Only Curentuicultuiculture can also be assigned as uncertain Cultural area CURENTCULTURE can only assign a value of the cultural area
5. If the user control uses the resource file (DLL), the same is true.
Pay attention to the so-called subordinate set, referring to the primary name of the DLL name of the resource file set, and the main DLL