Monday, May 2, 2011

Sandbox Solution Limitations: Workarounds.

1) Cannot use Visual Web Part    
      You can!
      Install the Visual Studio 2010 SharePoint Power Tools:     
     ant you will find a new "Visual Web Part (Sandboxed)" template.

2) Cannot deploy files on layouts folder
     You can use a Module to deploy files on your application, without using Document Library.

     You can read the files appending the Module URL to your site collection URL:

3) Cannot use Application Pages with code behind
      You can deploy an application page using a Module and add a Sandboxed Web Part to use code behind.
       SharePoint offers a specific class name <WebPartPages:SPUserCodeWebPart > to archives this goal.
       At the following link you can find a good example:

No comments:

Post a Comment