Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [web-part]

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

Filter by
Sorted by
Tagged with
9
votes
2answers
24k views

Deployed web parts don't show up in Web Part Gallery

I have created several custom web parts in a Visual Studio solution which deploys to my development environment site perfectly directly through Visual Studio. However, I also want to be able to ...
8
votes
2answers
10k views

SharePoint Search prevent showing results when loading page

I have a site with two webparts (search input field and search results). On each pageload it's searching for an empty string and returns all results, similar to "*". Querytext: {SearchBoxQuery}( ...
8
votes
1answer
31k views

Folders in document libraries: how to navigate back up to parent folder (web part on page)?

I have a document library web part on a page and it contains a folder. When a user clicks on the folder it opens and shows the documents inside, but there is no way to go back to the parent folder ...
8
votes
4answers
12k 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 ...
8
votes
5answers
5k views

Get webpart's Zone Id via CSOM

How to get Web Part Zone Id via CSOM? WebPart has property ZoneIndex but no ZoneId while WebPartDefinition has method MoveWebPartTo(string zoneID, int zoneIndex) but lacks methods to retrieve the ...
8
votes
2answers
6k 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 ...
8
votes
2answers
2k views

Webparts on Application Pages (_layouts)

Is it possible to have web parts on application pages. In other words having a web parts page in the _layouts catalog? Have tried inheriting from webpartpage, no errors but nothing happens when ...
8
votes
4answers
7k views

Report Viewer Web Part Alternatives in SP2013

We have a need to upgrade from SP2010+PWA to SP2013+PWA. Our database server will be SQL Server 2008 R2. According to Technet, the SQL 2008 R2 Reporting Services add-in for SharePoint isn't ...
7
votes
3answers
699 views

Best Practice for Lists and Web Part Pages

I used to refer end users directly to the list they shall use. However, in blogs or on SE it often reads as content editors (or other WebParts) are put on a list. From my understanding, this does only ...
7
votes
3answers
6k views

WebPart where to store a connection string

I have a webpart that connects to an external DB. I need somewhere to store the connection string. It is possible for this data source to change but would always be the same for the site collection ...
7
votes
6answers
9k 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...
7
votes
1answer
2k 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: &...
7
votes
7answers
8k 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 ...
7
votes
2answers
7k views

Export a page with web parts and import to another site

I have a web page in the documents library configured in a certain way with all the web parts set up. I created this on a test team site. How can I export this page to a production team site?
7
votes
6answers
19k views

Web Part Error: Access Denied

I'm currently playing around with SharePoint 2010 but have come across an issue when using the standard Document Library and Announcement web parts. If I change the permissions to a list or library ...
7
votes
3answers
30k views

Sharepoint 2013 - How to remove space between web parts?

There's a very annoying chunk of space between webparts such as promoted link and a content editor, and I'd like to remove it. I tried some css found on the web, but that didn't solve it. Does anyone ...
7
votes
4answers
14k views

How to add javascript and css to a SharePoint 2010 webpart?

What is the proper way (i.e. without having to manually copy the assets to any sharepoint folder or anything like that) to add custom javascript and CSS to a SP 2010 web part? I would like them to be ...
7
votes
2answers
765 views

SPFx(On-Prem) - Property for single choice of Office-IU-Fabric - PeoplePicker

I need to use componen for SPFX webtpart v1.0.2 for On-Premise server and I want to choice only one person from Office-UI-Fabric - PeoplePicker component This is my HTML(.tsx) public render(): ...
7
votes
3answers
25k 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 ...
7
votes
1answer
8k views

Programmatically add a web part to a page using CSOM

I want to create a SharePoint 2013 app that will add a web part (and an app part) to a page programmatically. I will be using SharePoint online. I cant seem to find any code that does this. Is this ...
7
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 ...
7
votes
2answers
162 views

Get List items with a different user

I´m searching for a function in C# where I can open a Sharepoint List with a specific user. The user who runs the webpart have no permission for the SharePoint list. So my idea was to open the list ...
7
votes
2answers
4k 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
2answers
2k 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 ...
7
votes
1answer
33k views

Have a web-part display only sub-folders?

I am new to SharePoint 2013. I was curious how to put a WebPart for a Document Library on a page with SharePoint 2013, not 2010. This WebPart would then show the content of a specific library folder ...
7
votes
1answer
2k views

Pnp provisioning : Provision a 2 List Webpart Page using jslink with xml template

I have the big question for you : How to provision a simple page with 2 ListView Webpart? What i want : I am provisioning a simple page (using OneColumns layout) via pnp and remote provsionsing. My ...
7
votes
0answers
1k views

How can I specify the ID of a XsltViewWebPart?

In a module, I'm deploying a webpart page where I put a view to a list: <View WebPartZoneID="Body" WebPartOrder="3" List="related" BaseViewID="4" ...
6
votes
2answers
801 views

Weekly update from the boss

I am a site owner for a military unit (we are going heavily to SharePoint.) We have SharePoint 2007 installed, and have no flexibility to add more web parts. We also have limited ability to ...
6
votes
2answers
23k views

Get a list of the webparts on a page

Is there somewhere you can view a list of all webparts embedded on a specific page? I have taken over development of a SharePoint website and some pages have a ton of webparts, and I have no way of ...
6
votes
2answers
505 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 ...
6
votes
3answers
10k views

After retracting webpart solution webparts still showing up

I retract a webpart solution that was deployed via Visual Studio. Then when i edit a page for some reason the Custom category + the webparts are still being listed when i try to insert a webpart. ...
6
votes
3answers
27k views

Install-SPSolution : This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application

I have a powershell script that deploys about 12 web parts. They have all been created in the manner through visual studio 2010 and are being deployed to sharepoint 2010. I am getting the following ...
6
votes
1answer
10k 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.
6
votes
7answers
30k 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 ...
6
votes
2answers
3k views

Moving a WebPart to a different zone on a page

How do I programmatically move a WebPart from one zone to another on a page? I have multiple sites that I want to loop through each site and update the page.
6
votes
1answer
9k views

Get the current UI language from a webpart

How can I get the selected language in the screenshot, from inside of a webpart? alt text http://thomasstock.net/currentlanguage.png I'm using SharePoint 2010. My webpart is a "visual web part" ...
6
votes
3answers
8k views

How to use html code in modern UI

This may be a rookie question but I just entered the world of SharePoint after a long time. I used to use the content editor web part to include custom html into my SharePoint pages, but now on the ...
6
votes
1answer
7k 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.
6
votes
3answers
2k views

.Webs and anonymous access?

We're developing a public facing SharePoint site so it have anonymous access. To be able to run custom web parts that access lists/libraries we need to run with elevated privileges which works fine, ...
6
votes
2answers
905 views

Location of web parts in use

After running preupgrade check, I found a few instances of some web parts I'd like to further investigate. These are 3rd party web parts that I'd like to know where they are actually being used. For ...
6
votes
1answer
12k 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 ...
6
votes
4answers
46k 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. ...
6
votes
2answers
114 views

Document Library - show a list of different one

I need you advise regarding Document Library in SharePoint 2013. Setting up a Doc Library is straight forward but here is where I am stuck: I have 2 departments IT and HR. Each of the department have ...
6
votes
5answers
7k views

No way to restore a Post.aspx blog view?

A bug in SharePoint 2013 which breaks the Posts.aspx page. Reproduce: 1) Click on the title of any blog post to open up the Post.aspx?ID=N view. 2) Place the page in edit mode and then place the ...
6
votes
3answers
2k 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 ...
6
votes
3answers
40k views

How do I change the background color of a web part?

I've got a document library embedded on the home page of one of my SharePoint sites. Someone changed the background color to grey, overriding the site's theme background color, which is white. I've ...
6
votes
1answer
2k views

Get and remove all currently displayed notifications from SP.UI.Notify

I am sending a variety of notifications via SP.UI.Notify.addNotification("blah", true); setting the "sticky bit" to true so that the notification stays visible. When I display a second ...
6
votes
5answers
22k views

Error occurred in deployment step 'Activate Features'

I am creating and deploying Visual Web Part on SharePoint 2013 with VS 2013 as Farm Solution. When deploying Web Part on the server i get the following error: Error occurred in deployment step '...
6
votes
3answers
34k 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 ...
6
votes
5answers
7k 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 ...