Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 ??" />   
</div>
share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.