Last post May 16, 2012 07:31 AM by PauloFC
May 12, 2012 01:34 PM|PauloFC|LINK
How can i access directly the variables that i have in my resource file (App_LocalResources/resource.resx) in VS2010 and FW4.0 ?
Example: I have a string saved like that:
RETURN_URL = www.example.com
May 15, 2012 10:09 AM|giop|LINK
You can access to the ressource in your code side with : resource.PROPERTY
So : resource.RETURN_URL
VS scaffold your ressources.resx in browsable class.
May 15, 2012 11:45 AM|PauloFC|LINK
i cannot access directly to: resource.RETURN_URL
It tell me that
"resoure" is not member of "resources"
What do you mean with "your ressources.resx
in browsable class"?
May 16, 2012 07:31 AM|PauloFC|LINK
In VS2010 you must use another folfer "App_GlobalResources".
Thanks any way