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)

10
votes
4answers
5k views

How to save variables per user session per page

I am using three webparts. Webpart A creates a value when the user clicks on the button in Webpart A. WebPart B uses this value to create a list with items the user can select. WebPart C uses both ...
12
votes
3answers
8k 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 ...
8
votes
5answers
14k views

How to programmatically add a webpart to a page?

I have created a webpart, now I need to add that webpart programmatically into the EditForm.aspx page. Can anyone help me on this.
6
votes
5answers
5k views

Refreshing custom developed web part

I've developed a custom web part that pulls data from a list. It will only retrieve items where a field called ShowItem is equal to 'Yes'. Once the data is loaded the end user has the ability to ...
3
votes
2answers
3k views

Connection between 2 web parts

Im embeding two webparts in my sharepoint page using page viewer. One part is UI which takes input from user and on submit it shud be passed to other web part and it should get refreshed. can anyone ...
0
votes
2answers
530 views

Question about webpart properties

I have a webpartpage which in this page I added multiple custom webparts which are the same. I wanted to use the .webpart file to add my own custom property like : value so I can treat each webpart ...
2
votes
3answers
5k 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
1answer
3k views

Add an existing WebPart Using the Sharepoint client object Model [duplicate]

My knowledge of the Client Object model is fairly limited, although I have been able to remove and move existing web-parts on a particular page. But I'm now struggling to find and then add a custom ...
6
votes
7answers
6k views

What is the proper way to add jQuery to a MasterPage?

Currently I am using this method in the header: <script src="/_layouts/MNCAssets/scripts/jquery-1.5.1.min.js"></script> But for some reason, my webparts that use jQuery don't appear to ...
2
votes
1answer
470 views

Webpart cannot be seen on page after adding. Error in ULS. Feature (wsp) = Webpart+ListInstance

Need some help on this one. We have deployed a webpart on LIVE server. On test server it worked fine. Now on LIVE we cannot see the webpart after adding to page. ULS: Failed to open the file ...
2
votes
1answer
695 views

Easy way to add a custom web part property to a web part?

I'm creating a web part using Visual Studio 2008 for SharePoint 2007. If I'm creating the web part from scratch, I typically don't have any properties defined yet in my code. I've found that it is ...
1
vote
2answers
1k views

Displaying some WebPart controls only to some user/groups

I need to hide some elements of a webpart and only show them to some specific grups of users. How can I do this ? I think it could be done with an If or Switch block, using the name of the grup of ...
6
votes
2answers
6k views

Is it possible to add web parts to an application page?

I was asked to add a list view web part to an application page. I added a web part zone into the page markup. I got a security error when I tried to add it so I added a form digest control (not sure ...
6
votes
4answers
8k 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
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
3answers
931 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 ...
2
votes
3answers
3k views

How to get value of List Filter web part in Javascript?

I use the SharePoint List Filter web part on a page to control several Data View Web Parts. How do I read the current value of the List Filter in Javascript?
6
votes
2answers
13k views

ExecuteOrDelayUntilScriptLoaded not executing after page publish

In SharePoint 2013 I have a page that is using the Script Editor web part. In the script editor web part I have the following: ExecuteOrDelayUntilScriptLoaded(startIt, "sp.js"); function startIt() { ...
4
votes
3answers
15k 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.
2
votes
4answers
13k views

Show only a subfolder of a document library in a web part

I want to show only a particular folder in the right pane of a page using a webpart in Sharepoint Foundation 2010. Is this possible? When adding the webpart, I could only add the document library. ...
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 ...
3
votes
4answers
22k views

How Can I Use the SharePoint People Picker Control in my Custom Web Part?

I need to add a people picker control to my custom web part. SharePoint has an OOB people picker control (which provides suggestions while typing into the control). Is there a way to use the OOB ...
3
votes
1answer
14k views

Calling the SP.UI.ModalDialog.showModalDialog method

My SharePoint solution has a userControl that Register a js block string getJS(string title, string htmlContent) { return (string.Format(@" ExecuteOrDelayUntilScriptLoaded(function ...
3
votes
3answers
20k 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 ...
2
votes
2answers
2k views

Closed vs. Hidden Web Part - what is the difference?

What is the difference between "Hidden Web Part" and "Closed Web Pat"? PS. I tried to search on the internet but could only find "deleting vs. closing" web parts Sharepoint 2010 (Sharepoint ...
2
votes
5answers
8k views

How can I show announcements from a different site collection?

We have a site collection at the top level to create the navigation between the different site collections of all departments. The desire is to have a central announcement board on the main page of ...
2
votes
3answers
1k views

Where is Organization Browser Web Part?

I’ve been trying to add an “Organization Browser” web part on our main portal site (http://whatever.sitehere.com) but for some reason, the web part isn’t there. It can’t be found under Social ...
1
vote
1answer
85 views

How to edit web part from wsp solution

I have wsp files that contain some web parts that I need to change the functionality of. Without the actual solution or project files, using just the wsp, is it possible to edit them? I changed the ...
1
vote
1answer
1k views

Sharepoint Web Part - Send row of data to another web part to set default value in an inline edited field

Introduction We have one sharepoint 2010 site which houses two Lists, for this example lets say Countries and Cities. In the Cities list we have a lookup for the ID of the Country and also the Title ...
1
vote
2answers
2k views

How to remove title in add new form.aspx

How to remove title from SPD in add new form.aspx. My list name is search.when i add new item it shows search - New Item, On edit it shows search - Title.
1
vote
1answer
2k views

Sharepoint Webpart custom properties get default values on server reboot

I have noticed that the custom properties of a webpart I developed return to their default values when I reboot my machine. Is that a normal behavior? are the properties saved as far as the server is ...
1
vote
4answers
270 views

What is something I should to to help me to Learning SharePoint?

I have a list of items I was told I should learn below. Can you tell me if there is one that I should remove and one I can add that will help me learn sharepoint backend development. I have been ...
0
votes
1answer
52 views

how can i display the latest items from another site collection

I have a web application, with three site collections . and i want inside my team site to be able to display the latest pages that have been added to my enterprise wiki site collection. so what are ...
0
votes
1answer
3k views

How do I update a lookup column from a dropdownlist?

I'm creating a custom web part in asp.net for SharePoint 2010 programmatically. When a user presses an Add button, the selected item from the dropdownlist is supposed to then be added to the Groups ...
0
votes
1answer
6k views

An example of databinding the repeater control?

I am trying to develop a custom visual web part to display the latest 5 announcements with the images that are attached from the OOTB announcement lsit.I have a repeater control with an Item Template ...
17
votes
4answers
12k views

SharePoint 2010 Application Pages. vs. Web Parts

I have done many a search on this issue with mixed results and ensuing ambiguity. The time has come to nail it down for good. If I'm developing the equivalent of a complex ASP.NET application, and I ...
7
votes
6answers
6k views

How to programmatically create a chart in SharePoint?

I need to create a chart based on items from a list dynamically in a webpart...
10
votes
9answers
6k views

ASP.Net WebPart or SharePoint WebPart

This is an almost religious question; what are your preferred base classes for building WebParts in SharePoint? Are you using the ASP.NET WebPart (System.Web.dll) or the SharePoint WebPart ...
16
votes
4answers
29k views

Hide the “Add new Item” option below the sharepoint 2010 list

I have a sharepoint 2010 list, I want to hide the option "add new item" which resides below the list, any suggestions?
7
votes
2answers
932 views

Anonymous access: Add an Item to List without allowing to View the List

I'm creating a 'Contact Us' webpart with form to allow anonymous user to send a message which will be added to a SharePoint List. However I cannot grant the anonymous user the permission to Add ...
7
votes
4answers
1k views

Can I get the source for the out-of-the-box web parts in SharePoint 2010?

I'd like to take an existing web part and add some functionality. Can this be done? I figured out how to download the dwp for the webpart but this does not appear to have any source code in it. ...
2
votes
4answers
12k views

Display List or Library on another site as WebPart?

I want to display my list on another site in same site collection. I edit List with SPDesigner, select the view and save it to site gallery. After these steps, I added the view webpart on my another ...
2
votes
8answers
4k views

How to determine which WFE you are hitting?

Webpart on the home page broken but does not appeared to be broken all the time. So I need to find out which WFE webpart is broken? Load balance is in place with 2 WFE. or is not the WFE since ...
6
votes
2answers
12k views

Difference between WebPart & Visual Web Part

I'm not sure how Visual Web Part is different from the actual Web Part in SharePoint 2010. Thanks!
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
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 { ...
3
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 ...
1
vote
3answers
364 views

SharePoint Webpart development using SPA or JavaScript library for better performance

We are looking at using combination of MVC4 and JavaScript libraries like Knockout and/or Breezejs for providing SPA or better navigation and performance within SharePoint 2010 environment. I am ...
0
votes
2answers
2k views

two column layout using XSLT of People Search Core Result WebPart

I have implemented "Employee Directory" on my portal using People Search Core Result Webpart. I want to create two column layout to display the results. How can I do that.