Web parts are ASP.NET controls that can be added to web part zones. They are generally distributed as WSP files. Pre-2013, they could be developed off the hosting server. With 2013, WebParts for the most part have to be developed the hosting server for propery library inclusion.

learn more… | top users | synonyms (3)

6
votes
1answer
384 views

Programmatically set a WebPart title to a $Resources value

I need to programmatically add a web part to a page where the title is using a $Resources:Filename,Key; string. I know I can use SPUtility.GetLocalisedString() to retrieve the correct value (and loop ...
6
votes
1answer
444 views

Multicast playing of video inside SharePoint

If I use the Flow Player (http://flowplayer.org/) to play videos (which is stored on a network storage) using the Content Editor Web Part in SharePoint 2007, will the videos operate in a multicast way ...
6
votes
1answer
972 views

Exception on connecting webparts

I have a couple of webparts on a page, XsltListViewWebPart and SPSlicerTextWebPart instances. I need to programmatically connect the filter (slicer) to the xslt webpart. When I do so, I need a ...
5
votes
2answers
5k views

Trying to use an SPWeb object that has been closed or disposed and is no longer valid.

I debugged this code and it never throws me an exception, however after ALL code is executed I got this message Trying to use an SPWeb object that has been closed or disposed and is no longer valid. ...
5
votes
5answers
3k views

How to validate Web Part property value?

A custom web part has custom web part properties. I would like to validate with custom server side code when user changes property value (or when properties are bing saved). Is that possible? Can I ...
5
votes
3answers
8k views

SharePoint 2013 Web Parts and Apps

Does SharePoint 2013 support Web Parts or only new Apps?
5
votes
4answers
1k views

Catch exception in web part, or let it bubble up?

I'm writing a web part for other sites to use in their SharePoint installation. In the logic of the web part I throw exceptions at certain failure points. I'm wondering whether it is a better ...
5
votes
3answers
132 views

SharePoint Admin and Developer Roles [closed]

Currently in our organization we have a three man SharePoint development team where we do everything other than SharePoint admin. Our organization has development, test, and production servers. We, ...
5
votes
1answer
323 views

How to remove webpart title hyperlink

Can you please assist me for removing hyperlink from webpart title. I have added # in webpart URL option but I want to make the webpart title non-clickable.
5
votes
2answers
2k views

How to change sort order of axis on Chart Web Part?

I have a Chart Web Part that is connected to a SharePoint list. I modified the All Items default view of the list so that it would be sorted correctly but the Chart Web Part does not pickup on the ...
5
votes
5answers
23k views

Webpart to display list of subsites?

I would have thought SharePoint 2010 still had a built-in webpart to display a list of subsites as I could in previous versions. I'm having great trouble finding it, though. How does one display a ...
5
votes
2answers
8k views

Enable Business Data Web Parts in site

I am using SharePoint Server 2010 and we do have Enterprise licenses. But what feature AND WHERE must be turned on in order to show the Business Data Web Parts like in the image below. Something ...
5
votes
1answer
256 views

Bulk Sharepoint Webpart Modification

Is there a way to go in and edit a set of webparts in bulk, instead of one by one? We've got a site with roughly 75 pages with an average of 3 webparts per page. Each of those webparts have a section ...
5
votes
2answers
264 views

How do I handle custom webpart property type update during re-deployment

I have a custom webpart that was defined with a property like [Personalizable(PersonalizationScope.Shared), WebBrowsable(true), WebDisplayName("Chart Type"), Category("Chart - Required")] ...
5
votes
2answers
190 views

Why is my web part showing “Add Document?” (Sharepoint 2013)

For some reason, one of my web parts is showing the "+ Add Document" link at the bottom of the web part as opposed to the new "+ New Document or drag document here" link at the top. The toolbar ...
5
votes
2answers
840 views

How to remove web parts from an unghosted page layout

Background: So I've apparently committed the cardinal sin in SharePoint. I edited a page layout in SharePoint Designer! This of course injected the special SPD meta attributes into the layout which ...
5
votes
2answers
241 views

Query Managed Metadata Service in Content by Search WebPart

I have created a site navigation structure in SharePoint Managed Metadata Service and I add a custom property to each term. How can I query the Managed Metadata Service by the Content Search WebPart ...
5
votes
2answers
2k views

Sharepoint 2010 Webpart Ajax not working

I have a custom webpart within Sharepoint and am trying to apply some ajax to the webpart. The same code works within a .net web application but not within a sharepoint web part. The code from the ...
5
votes
2answers
930 views

Tool for Site Admins to manage their own Active Directory security groups?

We are deploying a new SharePoint 2010 environment. All access is controlled via Active Directory security groups (placed inside existing SharePoint groups). Due to this, we are looking for a tool ...
5
votes
1answer
480 views

Tooltip showing latest pictures inside a Picture Library for SharePoint 2007

Inside a SharePoint Document List, I keep a few folders - Folder A, Folder B, Folder C. Each folder have some pictures inside them. May I know if there are any web part that can help me display at ...
5
votes
4answers
11k 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
1answer
2k views

Toolbar to show the context of a ListViewWebPart

I'm using ListViewWebPart to display contents of SPFolder (subfolder inside a list) to display its contents. Below is the code to implement this: protected override void CreateChildControls() { ...
4
votes
3answers
14k views

How to add Newsfeed webpart to SharePoint 2013?

I cannot see it anywhere: neither in Edit -> Insert -> Web Part, nor Edit -> Insert -> App Part. Do I have to enable a certain Feature to be able to use Newsfeed?
4
votes
1answer
7k 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
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
4k views

How to deploy web part solution to multi-server farm?

I am having a heck of a time deploying a simple web part to a multi-server farm. The error I receive when deploying is: Error occurred in deployment step 'Activate Features': Feature with Id ...
4
votes
6answers
14k 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
2k views

Moving a web part to a different zone on a page

How do I programmatically move a web part 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
1answer
6k 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
3answers
7k 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
1answer
7k 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

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
1k views

Is it possible to programmatically add a web part to a page in a sharepoint hosted app (JS)

I've been looking for a way to add a web part to a page using JSOM/CSOM or any other api available to sharepoint hosted apps. The only solutions I have found so far are for custom sharepoint ...
4
votes
1answer
5k 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
1answer
1k 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
3answers
1k views

can one use HTML5 tags in Sharepoint 2013 out-of-the-box

I want to know if i develop a visual web part, can i use html 5 tags in .ASCX file without adding any link to source or making changes to master page ?
4
votes
2answers
3k views

Sharepoint 2013 - Can I use Visual Studio 2012 express edition for web-parts and app parts?

I am new to SharePoint 2013. I want to develop the app and web parts using visual studio 2012 express edition. Can I use vs 2012 express edition to create app and web parts for SharePoint 2013? Can ...
4
votes
3answers
2k 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
3answers
926 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
1answer
5k 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 ...
4
votes
3answers
14k views

Show recently modified or uploaded documents

I'd like to display a list of the most recently modified documents across all document libraries in a site in Sharepoint 2010. It seems that the Content Query webpart might do this for me, but the ...
4
votes
2answers
632 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
2k 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
60 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
4k 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
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
739 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
3answers
584 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
649 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?