Skip to main content

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
17 votes
4 answers
10k 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 ...
user1746525's user avatar
14 votes
5 answers
28k 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.
Strider's user avatar
  • 1,369
12 votes
2 answers
11k 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 ...
Joesph Church's user avatar
6 votes
5 answers
8k 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 ...
daver306's user avatar
  • 580
23 votes
3 answers
18k 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 ...
Dribbel's user avatar
  • 2,906
19 votes
4 answers
88k views

How to have two web parts side by side in same zone

I have two web parts that i want to fit side by side in the same zone, however, I'm not sure how to go about this. I've modified the width of the individual web parts to be able to fit side by side ...
Mallory's user avatar
  • 191
11 votes
4 answers
46k 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 ...
Abe Miessler's user avatar
  • 6,755
6 votes
1 answer
13k 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 ...
Tanmay's user avatar
  • 517
5 votes
1 answer
9k 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 ...
Paul's user avatar
  • 177
4 votes
2 answers
20k views

Removing Weekend Days From Calendar

I wish to edit my 2013 Calendar web part and remove Saturday and Sunday from showing if possible so it only shows the work days of the week. Any help would be very much appreciated as i dont know ...
Shwabster's user avatar
  • 195
3 votes
3 answers
7k 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?
joweiser's user avatar
  • 194
3 votes
2 answers
4k 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 ...
neal's user avatar
  • 31
2 votes
2 answers
1k 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 ...
Ronen's user avatar
  • 119
1 vote
4 answers
324 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 ...
18 votes
5 answers
54k 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() { ...
NYTom's user avatar
  • 781
15 votes
5 answers
60k 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 ...
DannyRatna's user avatar
12 votes
1 answer
9k 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 ...
Glenn Vandamme's user avatar
8 votes
4 answers
53k 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. ...
Tim Coker's user avatar
  • 317
8 votes
1 answer
43k 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 ...
user28334's user avatar
7 votes
1 answer
5k views

The difference between webpart and add-ins

From what I know both of web part and add-ins (SharePoint-hosted add-ins) can give a custom functionality to a SharePoint page. And the only differences I know is that web part can be added via server-...
Intan's user avatar
  • 371
7 votes
7 answers
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 ...
Abe Miessler's user avatar
  • 6,755
4 votes
2 answers
28k 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 ...
matt's user avatar
  • 1,305
3 votes
1 answer
2k views

Get web part TypeName using CSOM

Can we retrieve the TypeName of a web part using CSOM?
thomius's user avatar
  • 2,808
3 votes
3 answers
8k 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 ...
stomcavage's user avatar
2 votes
1 answer
2k 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 ...
Kit Menke's user avatar
  • 4,203
2 votes
1 answer
3k 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 'C:\...
variable's user avatar
  • 4,440
1 vote
2 answers
2k 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 ...
Grzegorz Z's user avatar
  • 1,711
1 vote
2 answers
4k views

Not all views being displayed in my web part

Issue: Not all views being displayed in my web part. When selecting a view in my web part it only shows 30 views. How do I get it to show all views created for a list if there is more then 30?
user20150's user avatar
15 votes
5 answers
89k 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?
Mariusz Ignatowicz's user avatar
15 votes
2 answers
30k 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!
xorpower's user avatar
  • 453
11 votes
5 answers
17k views

Missing export option for SharePoint 2010 webparts

I am trying to export a list view webpart as a .dwp file so I can have a look at the XML. However, the export option is missing. My initial thought was to try something like the this link However, ...
user avatar
11 votes
2 answers
27k views

Picture Slideshow Web Part image size too small

I have a picture library of four images. Each of these is quite large. When the Picture Slideshow Web Part is configured it shows the pictures at about 50% of their actual size. Is there a way to ...
Charles Baker's user avatar
11 votes
1 answer
13k views

Programmatically find lists by template ID

I am looking for an efficient way to programmatically find all SharePoint lists with a given template / type in the current site collection from within a sandbox solution. NB: I'm obviously aware ...
user avatar
10 votes
2 answers
29k 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 ...
Fenoec's user avatar
  • 525
8 votes
1 answer
9k 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 ...
user1786107's user avatar
6 votes
1 answer
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.
Monica Jagani's user avatar
5 votes
1 answer
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 (...
Rami Alshareef's user avatar
5 votes
5 answers
5k 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 ...
Toni Frankola's user avatar
5 votes
3 answers
2k views

Is it possible to deactivate/remove/uninstall a default client side webpart?

I'm trying to deactivate/remove/uninstall a default Client Side Web-Part (the Yammer one) in modern pages and I don't find a way to do it: I would like the Yammer option to be not visible in the menu....
Txemanu's user avatar
  • 172
5 votes
1 answer
20k 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 = ...
StupidOne's user avatar
  • 317
5 votes
2 answers
12k views

How to change active directory password using Code?

How to change active directory User Account Password using code?
Rajesh Joshi's user avatar
  • 1,344
5 votes
4 answers
37k 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 ...
mkacar's user avatar
  • 77
4 votes
2 answers
16k views

List View Web part not showing all available views for list

We have added a list view web part to a page, and we get the Current View link in the web part. Which is configurable when modifying the actual web part. What we'd like to see (instead of having to ...
Sol Web Solutions's user avatar
4 votes
3 answers
4k 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 ...
user avatar
4 votes
6 answers
27k 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 ...
nldev's user avatar
  • 705
4 votes
3 answers
14k 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 ...
user avatar
4 votes
5 answers
17k 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 ...
Simon's user avatar
  • 705
3 votes
3 answers
4k views

Getting survey graphical result

Ok, Im havving trouble accessing the survey graph. My questions is how on earth does sharpoint create the graph from "graphical summary". I have a webpart, i can get the data and the questions ...
Ali Jafer's user avatar
  • 17.8k
2 votes
2 answers
3k views

Highlighted Content Column Creation

Our SharePoint tenant is host to multiple Client sites, all of which are structured more or less the same and with access to each Client site given to ourselves and the respective client. Each site ...
Guero's user avatar
  • 21
2 votes
2 answers
4k 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 ...
Gennady Vanin Геннадий Ванин's user avatar

1
2 3 4 5 6