Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 16, 2012 11:31 AM by PauloFC
Member
9 Points
17 Posts
May 12, 2012 05:34 PM|LINK
Hello,
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
Thanks
378 Points
81 Posts
May 15, 2012 02:09 PM|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 03:45 PM|LINK
Hello giop,
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"?
Thanks.
May 16, 2012 11:31 AM|LINK
Resolved.
In VS2010 you must use another folfer "App_GlobalResources".
Thanks any way
PauloFC
Member
9 Points
17 Posts
Access resources.resx in VS2010
May 12, 2012 05:34 PM|LINK
Hello,
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
Thanks
giop
Member
378 Points
81 Posts
Re: Access resources.resx in VS2010
May 15, 2012 02:09 PM|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.
Please Mark as Answer if it helps :)
PauloFC
Member
9 Points
17 Posts
Re: Access resources.resx in VS2010
May 15, 2012 03:45 PM|LINK
Hello giop,
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"?
Thanks.
PauloFC
Member
9 Points
17 Posts
Re: Access resources.resx in VS2010
May 16, 2012 11:31 AM|LINK
Resolved.
In VS2010 you must use another folfer "App_GlobalResources".
Thanks any way