SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to get resources that are kept at directory in my visual webpart "User Control" for SharePoint 2007:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Resources

At the moment I am doing something like this but its not working,

<div style="float:left; width: 35%;">
      <asp:Label ID="lblabc" runat="server" Text="How to get resources here ??" />   
share|improve this question
up vote 1 down vote accepted

you have to pass like below in your code

<asp:Label ID="lblabc" runat="server" Text="<%$ Resources:SampleFile,keyName %>"/>
share|improve this answer
this doesn't work until I add Resources folder in my solution and also copy resource files to App global resources in Virtual directory of app – Muhammad Raja Oct 19 '12 at 9:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.