You can rewrite the page in ASP. NET 2.0. Code File initializeculture () to set the uiculture of the page. For example: 1 Protected Override Void Initializeculture ()
2 {
3 If (Session [ " Uiculture " ] ! = Null )
4 {
5Page. uiculture=Session ["Uiculture"]. Tostring ();
6}
7 Base . Initializeculture ();
8 }
Of course it cannot be implemented now. You must generate multi-language resource files on the page. Open the page file, click "Tools" in the menu bar, and click "generate local resource" to generate the corresponding page resource file in "app_localresources.
For example, test. after aspx executes the preceding operations, test is generated in "app_localresources. aspx. resx. If you still need an English resource, you can copy it and rename it as test. aspx. en. resx, and then edit and modify the content.
In this way, the page can automatically generate different language interfaces based on session ["uiculture.