0

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>

1 Answer 1

2

you have to pass like below in your code

<asp:Label ID="lblabc" runat="server" Text="<%$ Resources:SampleFile,keyName %>"/>
1
  • 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 Commented Oct 19, 2012 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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