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)

2
votes
1answer
709 views

How to set height of the webpart?

How to set height of the webpart to 4 inches? I tried following but not working. PageViewerWebPart pvwp = new PageViewerWebPart(); pvwp.Title = strTitle; pvwp.Height= "4 Inch"; // Should be "4in" ...
0
votes
1answer
349 views

Misaligned Web Parts under certain circumstances

I have a web part page that contains two parts in separate zones, one on the left-middle, one on the right-middle (so they appear side by side). The left contains a content editor and the right ...
0
votes
2answers
588 views

<WebPartPages:PictureLibrarySlideshowWebPart adding links

Does anyone know how to change the link on the image to be whatever is in [link] field within the same library? (I added a column/field called link). The link on the image is a link to the image, but ...
1
vote
2answers
803 views

How to order a group of web parts added dynamically?

Preface: I did not come up with this implementation, just dealing with it. I have a web part zone that gets 3 content editor web parts loaded into it dynamically through the feature receiver. The ...
3
votes
2answers
1k views

How to set link on images with SP OOTB picture library slide show web part?

I added a link column in my picture library and populated with links. Then added SP OOTB picture library slide show web part. Both pictures and it's description are showing. I need the link to be on ...
1
vote
2answers
164 views

How to implement SP list with this?

I found a nice article that talks about image rotating. I want to read the pictures from picture library. how would I do that ? http://www.sohtanaka.com/web-design/automatic-image-slider-w-css-jquery/ ...
0
votes
1answer
231 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
2k 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
4k 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
982 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 ...
12
votes
3answers
6k 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
3k 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
280 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
923 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
1k 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
254 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
6k 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
855 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 ...
1
vote
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
944 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
934 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
750 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
212 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?
5
votes
4answers
7k 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
6k 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
1k 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
786 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
203 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
943 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
5k 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
227 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
953 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
4answers
9k 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
460 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
1k 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
5k 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
1answer
792 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
525 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
200 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, ...
2
votes
3answers
15k 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
1k 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
170 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
676 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
2k 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');"> ...