.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Deploying and Using jQuery with a SharePoint 2010 Sandboxed Solution

Posted By: Jan Tielens     Posted Date: September 02, 2010    Points: 0   Category :ASP.Net
If you're an avid reader of this blog, you probably now that I'm quite a big fan of the jQuery Javascript library, especially in combination with SharePoint sites. For a while I've been trying to find a mechanism to deploy jQuery and add a reference to it on all SharePoint pages of a site, by just using a Sandboxed Solution. The first part, deploying the jQuery file, is really easy; this can be done in a Module in a SharePoint project. The second part was more of a challenge; making sure the jQuery file got referenced in all pages of a SharePoint site. My initial thought was to do this by using the AdditionalPageHead Delegate control, but it's not possible in a Sandboxed Solution (you need to deploy the .ASCX to the SharePoint root). My second thought was to use the new ScriptSrc attribute you can use in a CustomAction (I wrote about this attribute some time ago). But initially I was under the impression that the ScriptSrc attribute could only target Javascript files loaded from the SharePoint Root (the \LAYOUTS) folder, resulting in a no-go for a Sandboxed Solution as well. Daniel McPherson stumbled upon this issue as well, but neatly solved it using Javascript to add the reference dynamically. But apparently you can make use of the ScriptSrc attribute to reference files from the Virtual File System (e.g. a Document Library in a site) as well! (thank you Frederic Dobon for men

View Complete Post

More Related Resource Links

SharePoint's Sandbox: Developing, Deploying and Monitoring Sandboxed Solutions in SharePoint 2010


The challenge in SharePoint development has always been the balance between creating and deploying solutions that you can trust not to damage or impair a SharePoint farm. A new feature in SharePoint 2010, called Sandboxed Solutions, enables farm administrators to feel comfortable that the SharePoint farm is safe, gives site collection administrators the authority to manage applications in their site collection, and provides developers with the flexibility to create solutions they know will be deployed in a safe and rapid manner.

Paul Stubbs

MSDN Magazine November 2009

Deploying Branding Solutions for SharePoint 2010 Sites Using Sandboxed Solutions

Learn to create sandbox-compatible branding solutions using custom master pages, CSS files, and images that can be deployed to SharePoint 2010 farms.

Sample: Deploying Branding Solutions for SharePoint 2010 Sites Using Sandboxed Solutions

Explore the code as you learn to create sandbox-compatible branding solutions using custom master pages, CSS files, and images that can be deployed to SharePoint 2010 farms.

Sandboxed Solutions for Web Parts in SharePoint 2010

SharePoint 2010 provides a new sandboxed environment that enables you to run user solutions without affecting the rest of the SharePoint farm. This environment means that users can upload their own custom solutions without requiring intervention from administrators, and without putting the rest of the farm at risk.

Sharepoint 2010 power tools visual sandboxed web part issue!!


Hi guys

I tried to use a simple hello world web part with with sharepoint power tools the solution is added ok but when I try to add the web part to the page I get this error "Unable to load assembly group. The user assembly group provider...." Any thoughts






Chapter 4: Sandboxed Solutions (Inside SharePoint 2010)

Sandboxed solutions represent a new form of solution deployment and management in SharePoint 2010. Learn how these solutions balance agility with farm stability and are considered a best practice for SharePoint developers.

Video: SharePoint 2010: Introducing Sandboxed Solutions

Sandboxed Solutions are SharePoint Solution Package files (WSP files) that are limited in what they can do and in the server resources they can use. What they can do is limited using Process Isolation and Code Access Security limited to the SharePoint Site. The resources they can use are limited by process monitoring, logging and log aggregation. (Length: 14:42)

Video: Sandboxed Solutions in SharePoint 2010

This video provides an overview of sandboxed solutions in SharePoint 2010. (Length: 4:18)

Video: Site Collection Solution Galleries in SharePoint 2010

This demonstration shows the solution gallery and solution management features of SharePoint 2010. (Length: 4:01)

Video: Web Parts in Sandboxed Solutions in SharePoint 2010

This module shows how to develop Web Parts for sandboxed solutions in SharePoint 2010. (Length: 4:51)

Video: Sandboxed Operations in SharePoint 2010

This video provides an overview of the operations that are allowed in sandboxed solutions. (Length: 2:39)

Video: Capabilities and Elements in Sandboxed Solutions in SharePoint 2010

This demonstration illustrates some of the allowed and disallowed operations in sandboxed Web Parts. (Length: 8:46)

Video: SharePoint 2010 Solution Deployment in Visual Studio 2010

This video delves into the details of packaging and deployment for SharePoint solutions in Visual Studio 2010. (Length: 9:16)

How to create single wsp for multiple projects sharepoint 2010 solution

We have multiple projects (4 projects) in single sharepoint 2010 solution. We want to create single wsp deployment for this. But when I right click on any project, it creates package means wsp on its own. How to create single wsp for multiple projects sharepoint 2010 solution? Is wsp builder which we are using for sharepoint 2007 project (works really great) also works in sharepoint 2010?

where is "solution store" in sharepoint 2010

with moss 2007 we could easily see on Central administration website what are the solution installed and where they are deployed and activated. also option to retract and remove solutions. Can someone tell me where I can find such an interface in Sharepoint 2010 ? kind regards

Reg deployment of solution packages in SharePoint 2010 from MOSS 2007

Hi, Earlier we have developed some custom web parts,features and deployed into the site through solution package(wsp files) when customer was using MOSS 2007.Now customer is migrating all sites into SharePoint 2010.Now my query is can i use the same solution to deploy into the site through Central Admin of SharePoint 2010 or is there any seperate process for that? Thanks & Regards, Sudheer

Need to design geocluster sharepoint solution for both 2007 and 2010

Hello, I need to have both remote datacenter (chicago and new york) to run active / active SP application. User in Chicago should use node in Chicago and user in Ny should use node in NY.  if a datacenter fail user in both chicago and NY should be able to continue to work using data from the available datacenter. Can anybody let me know where to find design to have geocluster solution for SP 2007 and 2010. Also if you have technical information to allow this type of desin this would be great? Thanks for your help guys  
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend