Friday, August 3, 2012

Using Custom SharePoint Resource files in 2010

What: If you open any of the Sharepoint Pages or master pages most of the time you will see something similar to "$Resources:wss,language_value" but  have you ever wondered what it is and were it is coming from?

Solution: Its coming form a resource file  at 14 hive (14\Resources)
We can create our own resource files and store at this location. And we can reference it in our xml files, master pages, and aspx pages.

Once you have your custom *.resx file at 14\Resources, you can refer it as below in an aspx page
E.g. text=<%$Resource:myText%>