Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Resources file shared between multiple features

$
0
0

Hi,

I have a resource file in 14\Resources that is used between multiple features (workflow, Event Receiver and Timer Job).

However, I have to write the key value in code in order to retrieve the value

SPUtility.GetLocalizedString("$Resources:"+"Hello", Resources, workflowProperties.Web.Language);

SPUtility.GetLocalizedString("$Resources:"+"Hello2", Resources, workflowProperties.Web.Language);

SPUtility.GetLocalizedString("$Resources:"+"Hello3", Resources, workflowProperties.Web.Language);

Is there a way to retrieve the value by creating static variable or something?


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>