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)

11
votes
4answers
6k 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 ...
14
votes
3answers
10k 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
17k 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
6k 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 ...
2
votes
2answers
216 views

Open modal dialog from webpart in the parent page

I have written a SharePoint application which is embedded in a page as an AppPart. Now I want to open a modal dialog in the parent page. This code opens the dialog only in the current AppPart: ...
1
vote
2answers
691 views

Question about webpart properties

How can I access a custom property in my webpart? I have a page that contains webparts, which contains multiple instances of the same custom webpart. I wanted to use the .webpart file to add my own ...
4
votes
1answer
2k 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 ...
0
votes
1answer
4k 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 ...
7
votes
7answers
7k 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
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 ...
3
votes
3answers
24k 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
1answer
856 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
820 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
7k 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 ...
7
votes
4answers
10k 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
3answers
1k 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 ...
7
votes
5answers
30k 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 ...
5
votes
2answers
14k views

Display New Form of a List in a Web Part page

How can we show a List Form/New Item Form (/servername/site/Lists/listname/NewForm.aspx?) as a web part in a SharePoint 2010 page? Adding a list web part obviously only shows the list items/views. I ...
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?
8
votes
2answers
20k 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() { ...
7
votes
3answers
29k 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
4answers
7k views

How to change active directory password using Code?

How to change active directory User Account Password using code?
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.
3
votes
1answer
16k 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 ...
2
votes
1answer
1k views

Reading web part properties using JavaScript Object Model in SharePoint 2013

I am using the below code to read the properties of a web-part using JSOM. While i can read the properties of the web-parts that are there on the current web part page, I would like to know of a way ...
2
votes
4answers
19k 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
4k 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 ...
2
votes
2answers
3k 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
11k 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
2k 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
2answers
1k views

Can I filter a Web Part list using parameters from the URL?

In my rich content area I've inserted a Pages Web Part (to show a list of pages in the subsite). I'm using JS Link to customize the presentation of the list. Can I pass a parameter to the page and ...
1
vote
1answer
156 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
2k 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
3k 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
2answers
3k views

Using the Now() function in CAML Query?

i am trying to get the 3 most upcoming events from the current date and time (The current data and time refers the time everytime my web part loads. Basically it is not a fixed date and picks up the ...
1
vote
1answer
7k 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 ...
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
278 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
0answers
53 views

How to implement a blog web part through provider hosted App?

Having a office 365 subscription, how can we implement a blog web part through provider hosted App in a SharePoint online site? In this case implementation will be through Provider hosted App, but ...
0
votes
1answer
161 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
4k 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 ...
20
votes
4answers
13k 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
7k 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...
18
votes
4answers
38k 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?
10
votes
9answers
7k 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 ...
7
votes
5answers
28k 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 ...
7
votes
2answers
2k 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 ...
6
votes
2answers
456 views

Which webpart is that?

Often I come across a page that is using some web part and I think, "Hmmm I could use that for my project that I'm working on." But often I don't know which webpart was used. And there are so many ...