SharePoint 2010 Sandboxed Solutions: The Definitive Guide

Posted on 12/7/2009 @ 4:26 PM in #SharePoint by | Feedback | 2666 views

In this blog post, I will dissect every aspect of sandbox solutions as they apply to SharePoint 2010. 
The below will turn into links as newer blog posts are published.

Some of the content below uses excerpts from my book on SharePoint 2010.

________________________________________________________________

Table of Contents:

  1. The definitive guide (back to table of contents). <--- you are here
  2. The basics of a sandbox solution
  3. Sandbox solution architecture and restrictions
  4. Sandbox solution monitoring, management and deployment
  5. Sandbox solution validations
  6. Sandbox solutions full trust proxies

________________________________________________________________

Sound off but keep it civil:

Older comments..


On 10/25/2010 9:24:33 PM Hitesh said ..
Hi Sahil,

Thanks for your nice articles on Sandboxed Solutions in SharePoint 2010. I have also been enjoying your SharePoint book. I have got a question and wonder if you can help me.


I am writing a Web Part and using the Client Object Model in JavaScript. I want to deploy it as a Sandboxed Solution. In one of the examples in your book, this is how you have registered sp.js file in a web part:

this.Controls.Add(


new ScriptLink()


{


ID = "SPScriptLink",


Localizable = false,


LoadAfterUI = true,


Name = "sp.js"


}


);

I have tried doing the same in my web part and then I found out that you can not use ScriptLink with a Sandboxed Solution. So I don't know how do I register sp.js in my web part which will be deployed as a Sandboxed Solution. I have also tried putting the script block (<script type="text/javascript" src="/_layouts/sp.js">) in a literal control and instantiate that control in CreateChildControls method but that didn't work.

Thanks


Hitesh