Web parts are ASP.NET controls that can be added to web part zones. They are generally distributed through the deployment of .WSP files. Pre-2013, they could be developed off the hosting server. With 2013, Web Parts for the most part have to be developed on the hosting server for proper library ...

learn more… | top users | synonyms (3)

5
votes
5answers
15k views

Custom web part deployment produces 'Cannot import this webpart' error

I have built an empty SharePoint project in Visual Studio 2010 with some custom web parts in it. When I've tested these on my local development machine they can be added to a page without any trouble. ...
5
votes
0answers
411 views

Least Level of Permissions for Web Part Page [closed]

I have a web part page with nothing on it. The user has SPBasePermissions.Open and SPBasePermissions.ViewPages only. The ULS shows: UnauthorizedAccessException for the request. 403 Forbidden will ...
5
votes
2answers
2k views

Search Box disappears when I save Web Part Settings

I am checking the "display search box" option in my web part properties and clicking "ok" but the search box disappears. When I click "apply" it will show the search box, but it will disappear again ...
5
votes
0answers
1k views

How can I specify the ID of a XsltViewWebPart?

In a module, I'm deploying a webpart page where I put a view to a list : <View WebPartZoneID="Body" WebPartOrder="3" List="related" BaseViewID="4" ...
5
votes
2answers
6k views

How to create .dwp WebPart in Visual Studio 2010?

I need to know how to create a web part with visual studio 2010 and deploy it with a solution package in a feature. When I try to do it by just changing the .webpart file to a .dwp file and change ...
4
votes
1answer
8k views

Sharepoint 2010 - Deploy webpart as Feature scope = web

I want to create and deploy a web part as web-scoped feature. In Visual Studio 2010, when I make the feature scope=web, I cannot add the webpart to that feature as I am able to do when scope=site.
4
votes
7answers
22k views

How do I Modify Contents of a WSP File?

I've been provided a WSP file that contains a webpart created by another developer. I have been requested to make modifications to the webpart and repackage as a WSP file again. What steps must be ...
4
votes
2answers
17k views

List of SharePoint 2010 Out-of-Box Web Parts

Can anyone provide me with a nice URL where it will show all the Out-of-Box web parts in SharePoint 2010 and what each one of them can do?
4
votes
3answers
17k views

Install-SPSolution : This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application

I have a powershell script that deploys about 12 web parts. They have all been created in the manner through visual studio 2010 and are being deployed to sharepoint 2010. I am getting the following ...
4
votes
1answer
9k views

Setting default value for custom webpart property

im trying to set a DefaultValue for my custom webpart property.. namespace Beraterprofil.VisualWebPart1 { [ToolboxItemAttribute(false)] public class VisualWebPart1 : WebPart { ...
4
votes
1answer
9k views

Custom webpart properties not holding their values!

I am dynamically adding items to a CheckBoxList that configures some settings in my web part. When I set the properties and click "OK" everything on my page works as expected and displays that data ...
4
votes
2answers
2k views

Moving a WebPart to a different zone on a page

How do I programmatically move a WebPart from one zone to another on a page? I have multiple sites that I want to loop through each site and update the page.
4
votes
3answers
9k views

Side-by-side web parts on a wiki page: possible?

I want to have two small web parts (weather and traffic reports) arranged side-by-side, rather than one on top of the other, on a wiki page (Home.aspx). It appears that I'll need a web part zone to do ...
4
votes
2answers
2k views

SharePoint 2010 web membership through Active Directory group web-part to display user list

I'm building a SharePoint environment that will be composed of many departmental sub-sites. Each of these sub-sites will have membership defined through Active Directory groups. I need to display on ...
4
votes
1answer
3k views

Select the ListView Web Part Automatically on AllItems.aspx

In SharePoint 2010, if you have more than one web part on a web part page, the ribbon disappears because SharePoint doesn't know which web part to display the ribbon for (this is by design because if ...
4
votes
5answers
181 views

Intranet page loading slow

In the past, I have added 5 WebParts to my intranet home page. Recently my site is running too slow. I'm not sure if its related to WebParts or something else. Please suggest how can I verify if its ...
4
votes
1answer
11k views

Add programmatically custom Web Part to page without Web Part Zone

I'd like to add custom Web Part to page without Web Part Zone programmatically, however, for some reason, I simply don't know how to do it. I created blank new Page (Body Only) PublishingWeb pWeb = ...
4
votes
5answers
3k views

Visual web part and custom web control - can't register

I have created visual web part and copied custom web control which I'd like to use. My control looks as below: namespace AppsListWebPart { [ToolboxData("<{0}:CustomImageButton ...
4
votes
3answers
9k views

Can't add web parts to a page as a user with Full Control

As a site collection admin, when I go into subsites and choose "Edit Page", and the "Insert" tab, I see a long list of categories for web parts in the left hand panel. However, when I log in as a ...
4
votes
1answer
138 views

Display template not updating outside server?

We have a SharePoint on-prem 2013 farm with 2 app, 2 WFE, 2 search and 2 SQL servers. We recently updated a display template and added a new Content Search web part. While we can see that new ...
4
votes
1answer
3k views

How to create a multilingual visual webpart in SharePoint 2013

Have anyone ever implemented multilingual visual web part in SharePoint 2013? I see there are many links out there on this topic but they are not cohesive and complete. I don't know how can I address ...
4
votes
2answers
461 views

Edit links in OOTB “Community Tools” web part in office 365

I've a requirement to show some custom links in OOTB "community tools" webpart (which will be shown only to community owners and moderators). I've to remove few links and add some custom links to ...
4
votes
3answers
3k views

Managed metadata refiners are not appearing

I have a site collection with many document libraries and document sets. I have created a managed property for each crawled property that I needed in the refiner, 4 out of 5 fields are managed ...
4
votes
1answer
2k views

Connecting Web Parts across pages in SharePoint Designer

I am trying to connect some web parts across different pages (in the same site) and the behavior I am seeing doesn't make sense to me. I think I am missing something in my understanding. I am using ...
4
votes
1answer
28 views

I can't find a WebPart I created

I created a page and then I added a Web Part to the page. When I came back to the page to make edits, the Web Part was gone. I added a new Web Part but it's default name ends with [2], which makes me ...
4
votes
1answer
204 views

Microsoft Office 365 Sharepoint issue

When I am logged in through the edit mode my web part (Summary link webpart) displays fine. However when logged out the Summary link webpart displays the error below: Unable to display this Web ...
4
votes
3answers
2k views

Add web part so that we can retrieve it later via CSOM?

How to add a web part on page in such a way that we later on can find it (using CSOM) - Can we somehow store identifier information to the web part? Say user could change the title and description (so ...
4
votes
2answers
782 views

Contributors can't seem to save personalisable web part properties?

I've using the following code to save the week a user is currently looking at, for next time they view the web part: private string _week = null; [WebPartStorage(Storage.Personal)] public string ...
4
votes
2answers
3k views

Changing a view doesn't automatically reflect on page

We've got a simple view for a list. When we add/remove columns, the view doesn't automatically reflect the changes; we have to go to the publishing page, click Edit Web Part, and re-select the view in ...
4
votes
1answer
63 views

How can I add a global control to check user has updated her/his profile?

Is there any control/feature/webpart I can add to trigger a functionality globally in any page on a Sharepoint? I now have a webpart on the homepage that checks if a user is due to update her/his ...
4
votes
2answers
6k views

Understanding problem: How to add a stylesheet to a web part

Well, I try to add a css stylesheet to my web part but it didn’t work… I read that there are many ways to a css file into a web part, but I didn’t understand them…. First I installed the Sharepoint ...
4
votes
2answers
3k views

Structuring wiki pages with templates in SharePoint 2007

I need to create a custom template for SharePoint 2007 wiki pages. With ability to add multiple web parts zones on Wiki Page. Is it possible to do that, as I have read from online that wiki pages in ...
4
votes
3answers
3k views

Web Part Tool Part Customization issue

To customize the Web Part Tool Part, im following this tutorial : http://blogs.microsoft.co.il/blogs/dudin/archive/2011/04/17/sharepoint-2010-how-to-customize-the-web-part-tool-part.aspx when i use ...
4
votes
2answers
750 views

Web Parts for both 2007 & 2010

I'm curious if anyone has seen any guidance/best practices on developing web parts that can work for both SP2007 & SP2010 with minimal conversion? They wouldn't take advantage of any new 2010 ...
4
votes
5answers
4k views

No way to restore a Post.aspx blog view?

A bug in SharePoint 2013 which breaks the Posts.aspx page. Reproduce: 1) Click on the title of any blog post to open up the Post.aspx?ID=N view. 2) Place the page in edit mode and then place the ...
4
votes
3answers
1k views

How to add webpart to blog post?

The idea is to use SharePoint Blog site as news site. Every new post has it's own pictures which users must see. I found a great webpart (Mirata Picture Gallery) for displaying images from Photos ...
4
votes
2answers
1k views

How to change webpart custom property in sharepoint 2010 using javascript?

I want to change Custom Property of Webpart using javascript. Does anyone have any ideas on how to accomplish this?
4
votes
3answers
473 views

Manage some state inside a Sharepoint WebPart

Considering a simple example of a webpart that adds items to a list based on a simple button click: public partial class MyVisualWebPartUserControl : UserControl { private int cont = 0; ...
4
votes
2answers
4k views

SharePoint 2010 RSS Viewer Web Part Fails to Load

Has anyone seen occurrences of the SharePoint 2010 RSS Viewer web part failing to complete loading when the page loads, instead remaining in constant "loading" mode with the Ajax indicator showing? ...
4
votes
3answers
2k views

The same web part (.wsp) for MOSS 2007 and SP 2010?

Is it possible to have the same web part (.wsp) for both (MOSS 2007 & SP 2010)? Assume that I want to develop a simple web part, and I want to deploy it on MOSS 2007 and also on SP 2010? So, is ...
4
votes
2answers
64 views

How to detect if a Project is in edit mode with JavaScript

I uploaded a javascript with a web part to my Project Server 2013 environment, and included the web part in one of the project's PDP, which contains the following code: var $puidElement = $("[GUID='" ...
4
votes
1answer
33 views

Prohibit site owner from deleting web part SP2010

Is there a way to stop site owners(Full Control-permission) from deleting a custom web part. I want to create a custom web part that can only be removed, closed or minimized by a specifically choosen ...
4
votes
2answers
139 views

How can I validate against all special characters in the attachments file name?

By default SharePoint does not allow the following special characters to be present in attachment file names ~, #, %, & , *, {, }, \, :, <, >, ?, /, |, “ How can I validate that any ...
4
votes
1answer
2k views

Use Credentials Provided to Sharepoint for Webservice Authentification

I created a webpart that is able to consume a service provided by Dynamics NAV 2009 R2. I documented in short what I did so far: http://shb.vps.bitfolk.com/nav-sharepoint.html I use the following ...
4
votes
2answers
1k views

Server-Side Rendering in SharePoint 2013 Content Search Web Part Without XSLT?

Background: I am new to SharePoint and I recently attended the SharePoint 2012 conference. It seems the primary way to render content in a custom way is on the client-side via JavaScript in the ...
4
votes
2answers
5k views

How to add a custom filter for a chart?

I have a list which contains multiple columns. I have inserted the chart web part and it's showing the graph based on the column list. Now I want to add a custom drop down filter which contains column ...
4
votes
1answer
525 views

In SharePoint 2010 how can I add user selected WebParts at run time?

I am quite new to SharePoint and have been given an interesting problem to solve. My users have requested to each have a custom home page that they can customise with ease. The design I have been ...
4
votes
2answers
471 views

Is there a “Who Follows me” Web Part?

I need a WebPart similar to Colleagues WebPart, but to return which users have added me as a Colleague. Does it already exist? Or, how can I develop it? I'm using SharePoint 2010.
4
votes
1answer
1k views

Which web part properties can / cannot be edited using CSOM?

For a Content Editor Web Part for example it seems we can update Width but not Content: webPart.Properties["Width"] = "100px"; webPartDefinition.SaveWebPartChanges(); clientContext.ExecuteQuery(); // ...
4
votes
2answers
1k views

prevent css inheritance from master pages

I am creating horizontal menus for a web part to give more interactive navigation options to a corporate SharePoint site that has headers/Branding etc. locked down. I notice that intended colors and ...