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)

6
votes
2answers
14k 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
7k 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
507 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.
19
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
569 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
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
1answer
4k 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 ...
3
votes
4answers
12k 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
1answer
320 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
0answers
65 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
2k 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
302 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
4answers
3k views

Sync Google Calendar with sharepoint Calendar

How to synchronize Google calender with SharePoint 2010 calender ?
2
votes
1answer
656 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
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
142 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
1k 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
884 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
830 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
2k 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
4k 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
1answer
120 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
861 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
8k 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
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 ...
1
vote
1answer
253 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
448 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 ...
0
votes
1answer
49 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
109 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 ...
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 ...
3
votes
1answer
4k 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; ...
3
votes
1answer
2k views

Display names in dropdown in webpart property

I would like to add custom property that offers a list of choices. It is possible to use Enum type. The property will be then rendered as a combobox. public enum Group { GroupA, ...
3
votes
2answers
1k views

Search Box disappears when I save Web Part Settings

I am checking the "display search box" option in my web part properties and clicking "ok" but the search box disappears. When I click "apply" it will show the search box, but it will disappear again ...
3
votes
1answer
262 views

Porting Web Parts to Office365 (SharePoint 2013 )

I've been in the process of developing a site in SharePoint 2010, which is composed of a set of different Farm deployed Web Parts. I was wondering what the process was for porting them to SharePoint ...
3
votes
3answers
2k views

Can't rename “Title” field in List Definition

I can't rename "Title" field to "Unit Type" Here is my Schema.xml: <?xml version="1.0" encoding="utf-8"?> <List xmlns:ows="Microsoft SharePoint" Title="PrCenter - StatisticsDef" ...
3
votes
4answers
8k views

HTTP/1.1 200 OK Server: Microsoft-IIS/7.5 , Connection: close

I am getting this error in sharepoint 2010 portal after i restore the site collection for my portal from SharePoint 2010 management shell. The problem is the restoring process does not complete and i ...
3
votes
4answers
1k views

Which is Better a UserControl or WebPart?

What are the advantages of user controls over WebParts when dealing with SharePoint? Some I can think of are: familiarity, reusability, and development speed. I am planning to implement them in ...
3
votes
1answer
2k views

how to check if a webpart already exists on a page or not

I am adding three webparts with different titles to a given page url, but I need to check if webpart is already on page or not, here is the code i am using atm to add webpart to the page. using ...
3
votes
5answers
2k views

Delete a WebPart from Web Part Gallery

I am trying to delete a Web Part from WebPart gallery but I don't see it there. The Web Part is available in the list when I try to add a Web Part in the page. This is the first time I am facing this ...