开发者

Multilanguage asp.net site with aspx in different levels

开发者 https://www.devze.com 2023-01-22 20:48 出处:网络
I\'ve been working in a multilanguage site build with asp.net and visual c#. I\'m using Local_resources to get my aspx files in Spanish and english.

I've been working in a multilanguage site build with asp.net and visual c#. I'm using Local_resources to get my aspx files in Spanish and english. If a use my aspx in the root of the website the Local_resources folder find the aproppiate resx for my aspx (because both have the same name). But if i put all my aspx into a folder created in the root directory, everything stop working:

Multilanguage asp.net site with aspx in different levels

as you can see i have a folder named "Inventario" and inside that folder i have Productos.aspx. In App_LocalResources i have two files, one for spanish and one for english. If i put Productos.aspx in the root directory they work fine, but i need them li开发者_JS百科ke in the image and like that is not working.

What should i do to the resx files to point to Inventario/Productos.aspx ?

Thank you very much.


You have to create a new App_LocalResources folder under Inventario, then copy Productos.aspx.*.resx from <root>\App_LocalResources to Inventario\App_LocalResources, then rebuild your solution.

0

精彩评论

暂无评论...
验证码 换一张
取 消