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 proper library inclusion.

learn more… | top users | synonyms (3)

0
votes
1answer
303 views

How to determine what pages are using a particular web part? [duplicate]

Possible Duplicate: How do I find in which (sub)sites a WebPart/Feature is used? After an upgrade to SharePoint 2010, we've had a few web parts with issues. We're a pretty wide ranging ...
2
votes
2answers
3k views

How to add content to Content Editor Webpart programatically?

So I have the standard Content Editor Webpart (MSContentEditor.dwp). The title i can set via webPart.Title (MSDN). I can't find any property where I would set the content editor's content. I ...
2
votes
3answers
6k views

Get Web Part name from GUID

We're migrating from SP2007 to SP2010 and are seeing some error messages about missing web parts during the upgrade, but the error messages only list the GUID and not the web part name. Is there a way ...
0
votes
2answers
1k views

Site Aggregator web part in SP2010 does not show new tab

I am unable to find "new tab" after adding Site Aggregator web part. Does anyone know how to do it?
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 ...
3
votes
3answers
1k views

Can I use a ListView in a web part?

I went to add a ListView to a visual web part I had created and it didn't show up in Intellisense. I figured it was just a hiccup in the intellisense so I just typed it in manually but when I run the ...
13
votes
3answers
9k views

How do I find in which (sub)sites a WebPart/Feature is used?

I need to find out on which (sub)sites a certain webpart is used. In a data sharing environment with many subsites and pages, I want to check if and where certain (third party) webparts are used. Is ...
3
votes
4answers
4k views

How do I display the results of a CAML query on a data grid in sharepoint 2007?

I want to develop a custom web part for SharePoint 2007. How do I display the results of a CAML query on a data grid? The grid view should be customizable, and should not adversely affect performance. ...
0
votes
1answer
304 views

The Organization Browser comes up empty if added to the mysite homepage

Adding the Organization Browser webpart to the My Profile page works fine, but it comes empty when added to the MySites homepage. Silverlight view shows empty (however the 4 arrows do exist and can be ...
2
votes
1answer
981 views

How to add PageView webpart?

This is not working.... SPLimitedWebPartManager webpartManager = webPartPage.GetLimitedWebPartManager(PersonalizationScope.Shared); PageViewerWebPart pvwp = new PageViewerWebPart(); pvwp.Title = "My ...
12
votes
6answers
2k views

Performance problem with custom web part

We've implemented a custom web part which we use to render content of an external website into a SharePoint page. During our test we encountered some strange performance issues. When we open a ...
5
votes
2answers
268 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")] ...
4
votes
3answers
8k 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 ...
6
votes
1answer
2k views

Problem installing web part using Powershell

We've developed a custom Visual Web Part using Visual Studio 2010 for Sharepoint 2010 Server. The webpart gets deployed when executed from VS (F5), so we can add it wherever we want using Sharepoint ...
0
votes
1answer
883 views

How to add web part (lvwp) programatically in SP2010?

How do I add web part on publishing pages. The publishing pages are in Pages list. I like to add the built in contact web part. Also like to add few web part and backend of these web part are list ...
2
votes
3answers
3k views

How to have settings per web part instance

We have developed a Sharepoint 2010 Visual Web Part. This web part adds some extra functionality to Sharepoint but depends on a custom database we've created to index some stuff in a scheduled job. ...
3
votes
3answers
1k views

Possible to programmatically display a list of all web parts and dynamically render on a page?

Is there anyway to use the object model to display a list of all web parts installed (say in a list box)? If so would it then be possible to render that web part on a page if it were selected?
3
votes
1answer
1k views

Webpart Custom Properties

With this attributes decorating the Properties of a Web Part... [WebBrowsable(true)] [Category("Common Settings")] [WebDisplayName("Show tab header")] [WebDescription("Show tab header for the News ...
2
votes
2answers
830 views

Limit Content Editor Webpart

Is it possible to limit the content editor webpart, like you can with pagelayout rich text fields. For example I want to limit the use of inline styles, fonts, colors etc. Are there any alternatives ...
2
votes
1answer
220 views

Possible to create a document library for my web part on installation?

I have a web part that need to have its own document library. Is there any way for me to check to see if that document library exists and if not create it, when the WSP is installed?
7
votes
4answers
9k views

Is there a web part to display all subsites with description?

I am looking for a way (via web part?) to display all sub-sites of a site collection with output similar to output you see under "Sites & Workspaces" (under All Site Content)... I know there is a ...
4
votes
1answer
8k 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 ...
2
votes
3answers
2k views

Hiding WebParts programatically does not work

I am using the following code to hide all WebParts in a page. string siteUrl = "http://site"; SPSite site = new SPSite(siteUrl); SPWeb web; web = site.RootWeb; web.AllowUnsafeUpdates = true; ...
2
votes
3answers
2k views

web parts vs user controls

I need to develop a SharePoint solution that has many layout pages, ten sub sites to be exact. Each department wants to have its own slight variation on the three layout pages proposed at the ...
1
vote
2answers
2k views

Can't get jQuery UI to work in my web part!

I have the following markup: <SharePoint:CssRegistration ID="cr_jqui" Name="/Layouts/MultiPart/css/smoothness/jquery-ui-1.8.12.custom.css" runat="server" After="corev4.css" /> ...
2
votes
1answer
797 views

Create Web part programatically VS 2010

we are to create several web parts after a site is provisioned with WSP. I can either create wp from scratch on feature action. Or save a set of WP in gallery and create an instance out of that when ...
3
votes
3answers
204 views

Developing a custom webpart to improve the page performance

I need a suggestion for a specific development requirement; it is just for a sub-site. The sub-site has a single list with 20 columns and 850+ items. Now, in the home page, I have to have there ...
2
votes
1answer
1k views

sharepoint webpart javascript - 'null' is null or not an object

I have an issue on one of my sharepoint enviriontments regarding some kind of javascript problem with the Content Editor Web Part which keeps returning me these errors when I try to user the RTF-text ...
3
votes
2answers
6k views

Changing colors on calendar view

I have a calendar list setup. My customer could like to give the appointments in the calendar view (by default green) a different color based on the category; much like the way Outlook does it. I ...
7
votes
1answer
1k views

Why is my CAML query working in CAML Builder but not in the application?

I have a CAML query that queries a calendar list and I want it to return all the items in the list with an EventDate of today or later, ordered in ascending order. The CAML query I'm using is this: ...
1
vote
1answer
315 views

Chart Web Part Average Data of a coumn

Let say I have a list with Title | Result A | Result B bob 1 1 bill 1 3 ben 1 5 I wish to graph the average for Result A and Result B only. Using the ...
1
vote
2answers
1k views

Issues after an Application Pool Recycle

My site is setup to use SharePoint 2010's automated Application Pool Recycling. I have 2 front end web servers. Sometimes (not everytime) the application pool recycles, and a custom webpart starts ...
5
votes
5answers
12k 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. ...
2
votes
2answers
518 views

How to add safecontrol without deploy solution

i have one portal for my student and been developed by vendor. so i dont have the coding. my problem is when i want to import my webparts into the portal, I need to insert safecontrol into the ...
9
votes
4answers
2k views

Why does having `windows.onload` break page editing?

This is related to an earlier question that I posted: Can't edit page after adding custom web part! Basically, I have created a web part with some javascript. When I add this web part to a ...
1
vote
5answers
7k views

Can't edit page after adding custom web part!

When I click on the edit icon nothing happens. No errors, no post back nothing. I ended up turning on the Console in FireBug and it throws this error: SP.Ribbon.PageState.ImportedNativeData is ...
6
votes
2answers
1k 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 ...
1
vote
2answers
610 views

Status indicator webpart fails on page edit

I have a status indicator webpart on two different Home.aspx pages in my site collection, both pointing to the same status list. The main site contains another site, and the sub-site is where the ...
1
vote
3answers
213 views

CbQ webpart takes longer time to load, SQL slowness issue

I have custom page and it has a CbQ webpart alone, it actually performs a query against a single list which has only 800 items with 15 columns but it takes 8secs to load. I suspect a slowness in SQL, ...
3
votes
3answers
22k views

“The type is not registered as safe” when trying to add a web part installed by a WSP

I keep getting this error when I try to add a web part that I added through a WSP: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type is not registered as ...
1
vote
1answer
2k views

Web part not available to add after Installing to the web farm

I am new to this type of development so I apologize in advance if this is a stupid question. But..... I installed a web part that was packaged in a WSP through the Management Console as follows: ...
1
vote
1answer
193 views

Webpart interaction

Although I've been doing a lot of sharepoint 2010 branding lately, programming webparts is something completely new for me. I need to put together three webparts. I want to create a Webpart1 ...
3
votes
2answers
809 views

How to put web parts on publishing pages?

Scenario: On a intranet page there is several site verticals (hierarchies) (e.g products and services). Now I want for each site to have a familiar welcome page. How is it best to put web parts on ...
2
votes
2answers
3k views

Possible to access controls on parent page from SharePoint popup?

I have a web part from which I am popping up a aspx page that is used to upload a file. Code: <a href="javascript:SP.UI.ModalDialog.OpenPopUpPage('/_layouts/MyProject/UploadFile.aspx');"> ...
1
vote
3answers
150 views

How to develop a webpart that show report of a list

I'm final year student and I need to develop a webpart for SharePoint 2007. I'm still exploring and I search for a tutor and friends that can point me to right direction on how to do my project. I ...
1
vote
2answers
3k views

Can I load a dropdown list with a SharePoint list to set a Custom Web Part Property?

I found this post which claims to show you how to do it: http://blog.concurrency.com/sharepoint/create-a-custom-web-part-for-sharepoint-2010/comment-page-1/#comment-1851 But after carefully ...
1
vote
5answers
2k views

Is there any way to show video in a web part on WSS 3.0?

Is there any ready to use webpart that can be imported to a WSS 3.0 site, in order to view video embedded on website, with no extra coding or server changes?
0
votes
0answers
698 views

using list lookup Fields in SharePoint 2010 programmatically [duplicate]

Possible Duplicate: How to set ListItem Lookup Field value I have a SharePoint list with a lookup field and I want to add values to this list through the SharePoint Object Model. but I ...
0
votes
4answers
327 views

sharepoint web part rendering

I've been pulling my hair out long enough on this one.. would appreciate some help :) I've created a custom DataFormWebPart which I need to render certain contents to all users of a sharepoint list. ...
3
votes
2answers
111 views

Location aware Silverlight webpart

We are designing a system where we will have a site per customer. The site will be created based on a custom site template. This site will have a Silverlight webpart, that will get data from a ...