I have a resource file placed in the App_LocalResources folder inside the folder for a theme in App_Themes like so: \App_Themes\Theme1\App_LocalResources\Resources1.aspx.resx
How can I access the resources in this file from a web form in my project, assuming the web form is called Resources1.aspx having Theme=’Theme1′?
You can use the ‘Resources’ expression to extract values from the resource file, for instance:
Alternatively, and especially if you’re in code-behind, use GetLocalResourceObject:
EDIT: Sometimes i answer too fast; i don’t think themes are localizable in that sense, however there are some workarounds. You could have theme specific items in the resource file and access them depending on current theme.