Tagged Questions
1
vote
1answer
22 views
Can I access in a SharePoint 2010 Online webpart, some webservice and do some CRUD?
I am using SharePoint Online. It is only possible to build sandbox solutions webparts. Is it possible in a sandbox solution webpart to access a webservice somewhere on the internet? I would like to do ...
0
votes
1answer
26 views
Programatically adding webparts to a page in sandbox
I've successfully implemented code to add web parts to web part zones in code using WebPartManager's in other projects.
Now that I'm working in a sandbox solution, VS can't seem to recognise ...
1
vote
1answer
39 views
Programmatically removing web parts in a sandbox solution? (Sharepoint 2010)
I had a problem with web parts being duplicated whenever their feature was reactivated, so I made a question about that.
It was answered (and correctly so, I think) - I have to programmatically ...
1
vote
0answers
37 views
Setting the value of a sandbox web part's custom properties in .webpart file
I've created a new web part in a sandbox solution. This web part has a custom string property called 'PetName'.
I'd expect to be able to set the initial value of this property in the .webpart file. ...
3
votes
1answer
127 views
Should this be a sandboxed solution?
My company outsourced the creation of a SharePoint WebPart for connecting to our cloud service.
The WebPart connects to our service by using our REST API. When configuring the WebPart you supply ...
1
vote
2answers
101 views
How to copy one custom list to another custom list (approximately 600 items)
I have one master list from which I wish to query and create a subset of this in a new custom list. The code I have so far works, but it is extremely slow and occasionally hits the hard limit of the ...
3
votes
0answers
11 views
How to upload file in document library in sandbox solution? [duplicate]
Possible Duplicate:
Upload file using sandbox solution
How to upload file in document library in sandbox solution ? File upload control is not working sandbox in sandbox solution
3
votes
1answer
1k views
Programmatically find lists by template ID
I am looking for an efficient way to programmatically find all SharePoint lists with a given template / type in the current site collection from within a sandbox solution.
NB: I'm obviously aware ...
3
votes
3answers
637 views
Dynamically registering JavaScript from within a sandbox web part
I am mid-way through development of a corporate intranet that will be hosted in SharePoint Online. For this reason, we are restricted to using sandbox solutions. One of the last "gotchas" that I need ...
2
votes
2answers
938 views
Custom Content Query Web Part in a Sandbox Solution
I am looking to create an "image slider" web part for my SharePoint 2010 site home page to display a nice glossy roll-up of our recent news articles. There are literally hundreds of jQuery plugins ...
0
votes
1answer
429 views
Sandboxed code execution request failed in Web Part with no Exception thrown
So I'm working on a web part for a client of mine targeting SharePoint Online, and I've run into a brick wall that I've been banging my head against for the last few hours. The web part executes a ...
0
votes
4answers
362 views
Where to deploy scripts in a sandbox solution?
I have a webpart deployed as a sandbox solution. The webpart has resource files, javascript files, css styles, and images. Where would I deploy all these in a sandbox solution (Office 365)?
Thanks!
1
vote
1answer
660 views
News web part for Sharepoint 2010
I am looking to build a News web part (Sandboxed) as we can see in below link.
http://timesofindia.indiatimes.com/tech/techhome/5880659.cms
Requirement is,
The News web part should contain a ...
0
votes
2answers
432 views
referencing jquery in a sandboxed solution
I have a sandboxed sharepoint project, in which I have created a module, put jQuery there and referenced it from my webpart's ascx page like this:
<head>
<script ...
1
vote
1answer
184 views
Extending Search Core Results with XSL
I'm working on a webpart that extends CoreResultsWebPart.
I have create new solution and added new WebPart project into it.
I got most of it working apart from XSL.
I want to use this.XslLink ...
0
votes
2answers
164 views
Creating public properties in sandboxed webpart solutions
I'm trying to port a farm solution to a sandboxed one, and I can't figure out how to port this piece of code:
[ToolboxItem(false)]
public partial class vClockPartSB : ...
1
vote
1answer
165 views
Adding and referencing an additional assembly in sandboxed solution
I'm writing a feature to my sandboxed web part with an event receiver that would parse a html website and add the results to a sharepoint list.
The thing is I'll need to use the HTML Agility Pack and ...
1
vote
1answer
165 views
Creating a Sandbox Compatible WebPart that extends Rss webpart functionality?
I'm trying to create a web part that can pull in twitter feeds on a sandbox site. Since sandbox webparts cannot make cross domain calls, I thought that I could use an old trick I enjoyed, which was ...
0
votes
1answer
331 views
using TaxonomySession from SharePoint web part and visual web part
Can TaxonomySession be used at SharePoint visual web part and web part on sandbox? I tested a simple code as following,
protected void Page_Load(object sender, EventArgs e)
{
...
0
votes
2answers
335 views
Error Handling Strategy for Sandboxed SharePoint Solutions
I am looking to develop an error handling strategy for a SharePoint solution that makes use of sandboxed webparts. I was initially looking at a general exception handling approach based on this ...
0
votes
3answers
2k views
Register and run javascript on load in a sandboxed webpart
Got a placed called 'SiteAssets/test.js' with the function test().
I've created a nonvisual webpart, would like the script via the cs file and then run the function during the loading of the webpart.
...
2
votes
1answer
319 views
Creating a custom Filter Webpart in SandBox? How-To?
Since a little while now I've been trying to create a custom filter webpart in Sandbox. So far, it seems that all the usual ways to create a custom filter webpart programatically ina farm solution are ...
2
votes
1answer
499 views
How to find the localized name of the Web Part Gallery
I have learned (still a SP-Noob...) that I have to take care of removing webParts that I deployed as part fo a solution myself.
Now I have coded something like
string file = "MyWebPart.webpart"; ...
3
votes
1answer
657 views
~site / ~siteCollection token replacement with sandboxed solutions
It seems you cannot use the ~site or ~siteCollection tokens in an Element.xml when you deploy as a Sandboxed Solution. Has anyone ever seen this behaviour?
Code snippet:
...
1
vote
3answers
1k views
How do I deploy custom web part to Sharepoint Online Site Collection?
After uploading the wsp to the site collection using the browser and activating it, everything seems to work fine and i see all the page layouts, masterpage, content types, lists and webparts. BUT, ...
3
votes
1answer
539 views
Sandbox Web Part without Site Collection Administrator permissions?
Is there a way to get a Sandboxed Web Part deployed without Site Collection Administrator permissions? Here is the situation:
I have Full Control permissions of the Site Collection's Root Web, ...
4
votes
3answers
1k views
How do I find out what's wrong with my sandboxed solution in SharePoint Online?
I have created a custom web part which presents a form to create a SharePoint site below the current site, while performing some ancillary actions like updating a list of subsites on the front page to ...
1
vote
2answers
576 views
How to refresh a Sandboxed web part after leaving Edit Display Mode?
I have a test SP page hosting a Sandbox WebPart, code only. The WebPart in turn contains a GridView.
I'd like to refresh the WebPart (actually, to fire the GridView-ObjectContainerDataSource ...
2
votes
1answer
202 views
Asynchronously load a Sandboxed Web Part
I'm wondering if there is an way to load custom Sandboxed Web Parts asynchronously. I have done this earlier with ScriptManager, I understand that this not possible with Sandboxed solutions. And these ...
9
votes
3answers
2k views
How to localize webpart title, description, group, quickadd group in Sandbox solution
I've seen other similar questions (like this one), checked Microsoft documentation (like all the ones stemming from and related to the page Localization of Sandboxed Solutions in SharePoint 2010), ...
5
votes
3answers
3k views
Sandboxed web part failing with “No available sandboxed code execution server could be found”
I'm deploying a web part as a component of a sandboxed solution from Visual Studio 2010 to Windows 7 SharePoint Foundation Server 2010 on my development box, and I receive the following error when ...
0
votes
6answers
4k views
SharePoint 2010 Sandboxed solution error during debugging
I'm in the process of creating a sandboxed web part, during debugging though once it is on the site the web part displays the error shown below:
Web Part Error: Unhandled exception was thrown by the ...
4
votes
1answer
2k views
Deploy a web part to a page during feature activation within a Sandbox Solution
I've been hitting my head against a wall on this one for the last couple of days. I have a pretty simple requirement but I cant see how it can be achieved within a Sandboxed solution. I'm depressed ...
2
votes
2answers
1k views
Problem debugging web part on SharePoint 2010 beta and Visual Studio 2010 beta
I have created a "Hello World" web part. When I pressed F5 in Visual Studio 2010, I got the following error. I have already got Microsoft SharePoint Foundation User Code Service started. Can anyone ...