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
5
votes
2answers
8k views

SharePoint javascript refresh page is reloading the whole page

In a webpart, I added a button that should trigger a modal dialog, and display a message when the dialog is closed. The dialog script is handled by this code : function OpenGenericForm(formUrl, ...
5
votes
1answer
10k views

Use one filter for multiple sharepoint lists

Can I define one list filter, and connect it to two lists on one web part page? I have two seperate lists on a page, both containing the 'author' column. Now, I want to add a filter to de page, so you ...
5
votes
4answers
35k 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 ...
5
votes
2answers
3k views

Difference between Webparts and user controls?

Difference between Webparts and user controls?
5
votes
1answer
719 views

Extending the Content Search web part; adding more fields & change the display template

I am working on a sharepoint server 2013 enterprise edition. and i have 2 site collections; http://servername/ & http://servername/depts . where the later site collection contain multiple sub ...
5
votes
1answer
2k views

How to retrieve webpart xml-definition programatically

I have a Custom Webpart deployed in the Site, to which I need to retrieve the XML definition programmatically using Client side object model, can anybody help? EDIT: I used the following code. ...
5
votes
1answer
7k views

FileUpload control's “.HasFile” property returning False even after file is selected?

I am creating a visual web-part for my SharePoint 2013 environment. I am using asp:FileUpload control(fuBrowseXMLFile) in this web-part for uploading files to a document library. I have a button Save ...
5
votes
1answer
3k views

Hiding the toolbar of a Listview webpart through CSOM

I recently successfully added a web-part to the frontpage using the method from Add Document Library XsltListViewWebPart using CSOM or web services However, it seems impossible to disable the toolbar ...
5
votes
2answers
616 views

Query Managed Metadata Service in Content by Search WebPart

I have created a site navigation structure in SharePoint Managed Metadata Service and I add a custom property to each term. How can I query the Managed Metadata Service by the Content Search WebPart ...
5
votes
1answer
8k views

How can I resize a web part to be the size of a div it is sitting in

I am trying to put some final touches on our main portal page. We are using a wiki page with a 2 column text layout. The left column is 75% of the page and the right column is 25%. In the right ...
5
votes
2answers
3k views

Sharepoint 2010 Webpart Ajax not working

I have a custom webpart within Sharepoint and am trying to apply some ajax to the webpart. The same code works within a .net web application but not within a sharepoint web part. The code from the ....
5
votes
3answers
3k views

Dynamically registering JavaScript from within a sandbox web part

I am mid-way through development of a corporate intranet that will be hosted in SharePoint Online. For this reason, we are restricted to using sandbox solutions. One of the last "gotchas" that I need ...
5
votes
2answers
6k views

Removing Orphaned WebParts via PowerShell - CheckIn/CheckOut Requirement Loop

A client migrated from 2007 to 2010 doing a database detach/reattach without checking the database for orphaned objects first. I whipped up a PowerShell script to programmatically remove orphaned ...
5
votes
2answers
1k views

Tool for Site Admins to manage their own Active Directory security groups?

We are deploying a new SharePoint 2010 environment. All access is controlled via Active Directory security groups (placed inside existing SharePoint groups). Due to this, we are looking for a tool ...
5
votes
1answer
617 views

Tooltip showing latest pictures inside a Picture Library for SharePoint 2007

Inside a SharePoint Document List, I keep a few folders - Folder A, Folder B, Folder C. Each folder have some pictures inside them. May I know if there are any web part that can help me display at ...
5
votes
5answers
19k 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. ...
5
votes
1answer
2k views

Deploy a web part to a page during feature activation within a Sandbox Solution

I've been hitting my head against a wall on this one for the last couple of days. I have a pretty simple requirement but I cant see how it can be achieved within a Sandboxed solution. I'm depressed ...
5
votes
0answers
769 views

Least Level of Permissions for Web Part Page [closed]

I have a web part page with nothing on it. The user has SPBasePermissions.Open and SPBasePermissions.ViewPages only. The ULS shows: UnauthorizedAccessException for the request. 403 Forbidden will ...
5
votes
1answer
844 views

Declarative WebPart on publishing page

I have made a publishing page layout that has a WebPartZone and a MediaWebPart in the ZoneTemplate. Example below. <WebPartPages:WebPartZone runat="server" Title="Fokusøki Media" ID="WebPartZone1"...
4
votes
3answers
15k views

How to deploy webpart on production (not debugging) server?

I've created a web part, debugging it on a test Sharepoint 2010 install on my local workstation. I'd like to test it on our production server. It seems that I won't be able to use Build --> Deploy to ...
4
votes
2answers
25k views

A Web Part or Web Form Control on this Page cannot be displayed or imported

I'm working on Create a Custom Web Part i'm able to do a build and run the new project in debug mode. However, after trying to add the new web part to the site, I get the following error. "A Web Part ...
4
votes
3answers
12k views

SharePoint 2013 Web Parts and Apps

Does SharePoint 2013 support Web Parts or only new Apps?
4
votes
2answers
71k views

PDF viewer web part

I'm new with sharepoint 2013 Does anyone know pdf viewer webpart for sharepoint 2013 for free Please help me.
4
votes
1answer
11k 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 { ...
4
votes
5answers
11k views

Unable to find the export web part option

So I am in the process of trying to create and 'package' web parts for a client. Basically what this entails is taking a 'Content Search' web part, edit the query, edit the properties, and add the ...
4
votes
1answer
16k views

Call WebMethod from JS in Visual web Part

I have ASP.NET web app that call some WebMethod from javascipt and fills textboxes. This is not all code, just example codesnippet function dataApp(text) { var loc = window.location.href; $....
4
votes
3answers
23k views

How to register a Web Part as safe?

At launching "Preview in Browser" (by pressing F12) of a page from SPD 2010 I am getting the error: soap:ServerServer was unable to process request. ---> A Web Part or Web Form Control on this Web ...
4
votes
3answers
11k 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 ...
4
votes
2answers
2k views

SharePoint 2010 web membership through Active Directory group web-part to display user list

I'm building a SharePoint environment that will be composed of many departmental sub-sites. Each of these sub-sites will have membership defined through Active Directory groups. I need to display on ...
4
votes
3answers
3k 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 ...
4
votes
4answers
796 views

SharePoint Framework Workbench Error - the requested operation is part of an experimental feature that is not supported in the current environment

I've just followed the instructions for the hello world sample for the SharePoint Framework Preview and I'm getting the error in the title when attempting to run the workbench on my sharepoint dev ...
4
votes
2answers
6k views

List all subsites with REST API

I have a SharePoint site wich I named ''Portal'' and under Portal I have several communities (subsites). For each subsite I disabled permission inheritance and I setted up the groups and roles ...
4
votes
3answers
12k views

Drag and drop problems in Sharepoint

I really need help because I'm going crazy over here. I want to drag and drop a web part on a web part page in the same web part zone. IE8 In IE8 I can drag and drop web parts but the scroll-bar ...
4
votes
3answers
734 views

Is picture library slideshow webpart down?

I am using sharepoint 2013 , is this app not working everywhere? in my site wherever i have applied this , it is not working , ie not playing automatically. is the app affected?
4
votes
1answer
965 views

Display template not updating outside server?

We have a SharePoint on-prem 2013 farm with 2 app, 2 WFE, 2 search and 2 SQL servers. We recently updated a display template and added a new Content Search web part. While we can see that new ...
4
votes
1answer
22k 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 (...
4
votes
5answers
4k views

Visual web part and custom web control - can't register

I have created visual web part and copied custom web control which I'd like to use. My control looks as below: namespace AppsListWebPart { [ToolboxData("<{0}:CustomImageButton runat=\"server\"&...
4
votes
3answers
12k views

How to get current web part GUID

Is there a way to find the GUID from within a web part programmatically? For example, if there were two of the same web part added to the same page, is it possible to find the GUID of each of them ...
4
votes
4answers
4k views

How to develop “Form Builder” web part?

I want a Form Builder web part. This web part would create basic forms dynamically on the fly by drag-and-drop controls. These forms would send the form values as an email and/or store information in ...
4
votes
1answer
367 views

Issue while adding SPFx web part to app catalog

I have adding SPFx web part to my site by adding .sppkg file to app catalog. Upto 4 days back it was worked fine. But all of sudden from yesterday web part is not visible on page. When I try to find ...
4
votes
1answer
377 views

Using bootstrap in SPFx RC.0 webpart

I searched and used below code snippet: import * as React from 'react'; import styles from './Announcements.module.scss'; import { HttpClient, SPHttpClient, SPHttpClientConfigurations } from '@...
4
votes
2answers
889 views

Edit links in OOTB “Community Tools” web part in office 365

I've a requirement to show some custom links in OOTB "community tools" webpart (which will be shown only to community owners and moderators). I've to remove few links and add some custom links to ...
4
votes
2answers
21k views

Overlay calendar events not appearing in web part

I have got a site collection with a main site and a subsite for each client. On each subsite there is a calendar which contains recurring meetings. On the main site I have a calendar that points to ...
4
votes
3answers
4k views

Managed metadata refiners are not appearing

I have a site collection with many document libraries and document sets. I have created a managed property for each crawled property that I needed in the refiner, 4 out of 5 fields are managed ...
4
votes
2answers
5k views

How to set start and end date in Timeline webpart in SharePoint 2013?

So here is the scenario. I want to "hijack" the Timeline webpart used for project sites in SP2013 and set a fixed start and end date. There is an option to lock the timeline in it's current state in ...
4
votes
2answers
9k views

How to register a new http module n the web config

I built a http module. I copied into the GAC . Then, I put into the WebConfig file lke this : <httpModules> .... <add name="MyAssembly" type="MyAssembly.Global"/> <httpModules/&...
4
votes
4answers
24k views

Redirect a user after submitting an InfoPath form

I made a custom list in SharePoint and then created an InfoPath form based on that list. I created a new page in my SharePoint publishing site and added an InfoPath Form Web Part that looked at my ...
4
votes
1answer
2k views

Connecting Web Parts across pages in SharePoint Designer

I am trying to connect some web parts across different pages (in the same site) and the behavior I am seeing doesn't make sense to me. I think I am missing something in my understanding. I am using ...
4
votes
3answers
9k views

Expanding and collapsing sharepoint webparts

I want to implement a collapsing/expanding feature to all my webparts in a certain page and tried the code shown here: http://moblog.bradleyit.com/2009/08/sharepoint-expand-or-collapse-web-parts.html ...
4
votes
1answer
725 views

Developing WebParts for SP 2007 and SP 2010

We are currently working on a project where the first release will be in 2007 and the next release will be in 2010. In previous projects we have created webparts using user controls and defining ...