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 am trying to localize a sandboxed visual webpart (part of the SP2010 development powertools released by MS), but as soon as I add

<%$Resources:RESXFILE,RESOURCEKEY%>

to for instance a label's Text property, the generated file (webpartname.ascx.g.cs) with the ascx's contents as actual C# code is cleared, as in completely empty!

The resources are of course deployed using a module with the deployment target set to AppGlobalResource.

Any ideas?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You can't use AppGlobalResource or <%$Resources:RESXFILE,RESOURCEKEY%> in Sandboxed solutions.

See Localization in SharePoint 2010 Sandbox Solutions for how to use resources in Sandboxed solutions.

share|improve this answer
    
Doh, appglobalresources get deployed to the filesystem to of course :-S. Thanks :-D –  Colin Apr 18 '12 at 20:11

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.