Line feed in the code behind in the local source file

I created local resource files with VisualStudio (.resx and .fr.resx) for each page. All control text on an .aspx page can be translated now.

But can I also translate lines in my code in this loacal resource file? If so, how can I read the value in the code outside of my local .resx files on my App_LocalResources map?

+7
source share
1 answer

You can try...

Just call the GetLocalResourceObject method on the current page:

GetLocalResourceObject("yourkey").ToString(); GetGlobalResourceObject("MyGlobalResources", "HelloWorldString").ToString(); 
+7
source

All Articles