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)

4
votes
2answers
889 views

SharePoint Web Part from App that is NOT in another domain or inside an iFrame?

We created SharePoint Hosted App that offers a Web Part we can add to SharePoint 2013 pages. The problem is that web part installs as an iframe pointing to the apps domain. Two challenges in ...
2
votes
8answers
5k 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 ...
7
votes
4answers
2k 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. ...
4
votes
1answer
7k 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
4k views

How to add Client Web Parts (App Parts) to a page from JavaScript CSOM?

We're working on a custom way of adding and deleting Web Parts and App Parts to a page in SharePoint 2013. We have to use the new App way of developing and all code has to be using the JavaScript ...
3
votes
4answers
16k 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 ...
6
votes
2answers
16k 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
8k 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 = ...
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
598 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 ...
1
vote
6answers
5k views

Add a Web Part to a Master Page for only one page in SP2010?

I would like to add a Web Part to part of a Master Page, but only in the case of the home page of the site. Otherwise it is not needed. How can I handle this? (see attached image) Do I have to ...
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.
20
votes
5answers
1k views

Organizing WebParts in Visual Studio - Best Practices

My team is responsible for maintaining a SharePoint 2010 site that was developed by another group. This maintenance includes updates to existing web parts (approximately 20). Currently, all of these ...
10
votes
1answer
3k views

Implement Interface in custom “Connected Web Part” to provide “Filter Values”

Question 1.1 What interface do I need to implement into my custom web part, to make it a provider for "filter values" for a normal XsltListViewWebPart? Answer - IWebPartParameters "XSLT List ...
9
votes
3answers
3k views

How to localize webpart title, description, group, quickadd group in Sandbox solution

I've seen other similar questions (like this one), checked Microsoft documentation (like all the ones stemming from and related to the page Localization of Sandboxed Solutions in SharePoint 2010), ...
6
votes
2answers
1k views

Exception on connecting webparts

I have a couple of webparts on a page, XsltListViewWebPart and SPSlicerTextWebPart instances. I need to programmatically connect the filter (slicer) to the xslt webpart. When I do so, I need a ...
4
votes
1answer
813 views

Which web part properties can / cannot be edited using CSOM?

For a Content Editor Web Part for example it seems we can update Width but not Content: webPart.Properties["Width"] = "100px"; webPartDefinition.SaveWebPartChanges(); clientContext.ExecuteQuery(); // ...
4
votes
2answers
6k 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 ...
4
votes
2answers
4k 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 ...
3
votes
4answers
14k 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 ...
3
votes
5answers
3k 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 ...
2
votes
0answers
71 views

how to validate fields with html5 & sharepoint 2010 webpart?

Recently, I tried to get validated fields with RegularExpressionValidator. When I deployed the webpart, the click event is not working as expected. I hear that RegularExpressionValidator is not ...
2
votes
3answers
3k views

UpdatePanel in sharepoint not working in Safari browser

I implemented a simple visual web part with updatepanel with a button and a label. When I click on a button, OnClick event is called and the label is getting filled. This works fine in all browsers ...
2
votes
2answers
318 views

Can we avoid clunky hiding of WebParts?

It's a real drag and performance killer to have to load all the WebParts on a page and then laboriously hide and reveal all the ones relevant to user groups / permission levels. Especially when on the ...
2
votes
1answer
7k views

How to open a form in a modal dialog popup using C#

I have virtually no experience with web development but now I need to create a web part for SharePoint 2010 and I am stuck. The web part is supposed to find all content types derived from folder ...
2
votes
3answers
3k views

Sync Google Calendar with sharepoint Calendar

How to synchronize Google calender with SharePoint 2010 calender ?
2
votes
1answer
664 views

How to find the localized name of the Web Part Gallery

I have learned (still a SP-Noob...) that I have to take care of removing webParts that I deployed as part fo a solution myself. Now I have coded something like string file = "MyWebPart.webpart"; ...
2
votes
1answer
2k views

Send e-mail with SMTP (Office 365)

I need to show a popup-window with a basic e-mail layout and send the e-mail after pressing the send button. The popup, I've created and also the webpart within. But when I want to send the e-mail, it ...
2
votes
3answers
10k 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 ...
2
votes
3answers
2k views

web parts vs user controls

I need to develop a SharePoint solution that has many layout pages, ten sub sites to be exact. Each department wants to have its own slight variation on the three layout pages proposed at the ...
2
votes
2answers
2k views

When to use application pages (aspx) versus web parts?

I'm struggling with this question at the moment... Basically I'm pulling a set of data out of a DB table related to our LOB application, listing it, and then want to click through from this list to ...
1
vote
2answers
695 views

How to get web part id

This is a follow up question to the one i asked earlier : Reading web part properties using javascript object model In my earlier question I had been able to access the properties using jsom but i am ...
1
vote
1answer
2k views

Link to a document library in another subsite?

How can I display the same Document Library, that already exists in a Subsite A, in another Subsite B ? I want to display a Document Library with all the columns (Title, Modified By ...) and not links ...
1
vote
1answer
671 views

SharePoint Web Part Development - Server Side vs Client Side

I am developing a web part in SharePoint 2010. I consulted with someone well versed in SharePoint development who told me that, beginning with SP2010, server-side code is discouraged. The problem is ...
1
vote
1answer
1k views

Using Content search web part to retrieve items from another site collection

I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:- -http://applicationname/teamsite -http://applicationname/enterprisewiki Now I ...
1
vote
2answers
1k views

How to remove Feature from site?

Someone in my company installed a test feature on a live site. Now I'm trying to clean up this test feature, and am not sure where all to look to get rid of the one feature that I have left. This is ...
1
vote
1answer
3k views

Saving Page with WebPart error Invalid postback or callback argument

I'm using SharePoint 2010 Foundation with Visual Studio 2010 Ultimate. I developed a Web Part with extensive use of JavaScript and Ajax call. I deploy application by Visual Studio correctly, enable ...
1
vote
1answer
8k 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 ...
1
vote
1answer
5k views

Webpart added to webpart page using modules is not visible in edit page

I am provisioning a webpart to a webpart page in sandboxed solution. here is the module's element.xml <?xml version="1.0" encoding="utf-8"?> <Elements ...
1
vote
5answers
615 views

SharePoint Page is not saving

I created a new webapart and added it to a page. After adding, I was unable to save the page from editing mode, but if I remove my webpart and try to save, it's saving. Not sure what is the error. ...
1
vote
1answer
127 views

Create a WebPart that floats in text

I want to create a webPart that "floats" in text. Basically I want to duplicate "Reusable Content". Is there a way to have the webPart render as span and without chrome?
1
vote
1answer
904 views

Creating and Deploying a Custom Login Page for SharePoint 2010

I want created a custom login page . I use this link for created custom login . But when i build the solution,don't create a folder inside .\Microsoft Shared\web server ...
1
vote
2answers
2k views

Custom properties in XSL

Is it possible to pull the value of a property, from a web part into XSL? I need to build something similar to the standard Summary Link Web Part, but would like to extend the default control with ...
1
vote
1answer
9k 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 ...
1
vote
1answer
263 views

Is there a way to override default generated properties in a custom web part?

I know how to make custom properties for web parts in SharePoint, but is there a way to override the ones that are already generated? For example I have a Page Viewer embedded within my custom web ...
0
votes
1answer
457 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 ...
0
votes
1answer
52 views

Dynamically Display List from Menu Selection

I currently have a site that has a CSS/HTML menu that links to different lists created in SharePoint 2010. There are dozens of these lists and currently selecting one from the menu goes to an entirely ...
0
votes
1answer
138 views

move site page from dev to production

I have seen a lot of resources online about something similar to my issue but nothing came to concrete help (content is old or not quite relevant) so I appreciate some help. situation used SP ...
0
votes
2answers
3k views

How can resolve Error: “Could not load type 'Microsoft.SharePoint.WebControls.SPGridView” SharePoint 2010?

Following error comes when creating a WebPart In sharePoint 2010 Server. Web Part Error: Unhandled exception was thrown by the user code wrapper's Execute method in the partial trust app domain: ...
7
votes
1answer
1k views

Where to load data in the lifecycle of custom webpart

I have a webpart where I access a sharepoint list and render contents of that list. At the moment I'm fetching the data in CreateChildControls(). When a button is clicked the data will be fetched ...