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 propery library inclusion.

learn more… | top users | synonyms (3)

4
votes
1answer
66 views

Boundaries in diagram with Date as X

I've recently been trying to build a line diagramm webpart with dates as X Problem is: I can't find a way to adjust the boundaries of the diagram which causes it to start in ~1900 At the moment it ...
4
votes
1answer
282 views

Web parts not working when applying new master page

I started a small Sharepoint site as a rush job. It's a bunch of fairly simple web part pages. Now that we're expanding it, I need to add a different master page. I was using our client's master ...
4
votes
2answers
3k 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 ...
4
votes
1answer
461 views

How to customize a ListView Webpart from code

I have a repository of files... I'd like to create a ListView Webpart wich receives the path in the tree and show the files in the document library... It's possible to do this by code? Is there any ...
4
votes
2answers
1k views

How to set link on images with SP OOTB picture library slide show web part?

I added a link column in my picture library and populated with links. Then added SP OOTB picture library slide show web part. Both pictures and it's description are showing. I need the link to be on ...
4
votes
2answers
3k views

How to use InputFormTextBox in a custom web part ?

I'm currently trying to integrate a rich text editor into my web part. I've found that I can integrate an InputFormTextBox in my aspx page : <SharePoint:InputFormTextBox ...
4
votes
2answers
3k views

Provision XSLTListViewWebPart with <AllUsersWebPart> or <View> and customize the XslLink

I've created some custom List Definitions (aka List Templates) and am provisioning List Instances of them into my site. I am then provisioning Pages (Wiki/WebPartPages) that refer to the lists/views ...
4
votes
1answer
587 views

Consumer+provider web part connections: output is asked before input

I created a simple web part that has both a consumer and a provider connection. The provided output depends on the consumed input (so this is a sort of pipeline approach). I managed to implement the ...
4
votes
1answer
2k views

Toolbar to show the context of a ListViewWebPart

I'm using ListViewWebPart to display contents of SPFolder (subfolder inside a list) to display its contents. Below is the code to implement this: protected override void CreateChildControls() { ...
4
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 ...
4
votes
2answers
900 views

Unable to add selected webpart(s) [closed]

I've created a Custom List ('Tooltips') in SharePoint. After this I used SPSource to reverse engineer the list into a feature. After installing and activating this feature, I want to add this list in ...
4
votes
2answers
4k views

How to create .dwp WebPart in Visual Studio 2010?

I need to know how to create a web part with visual studio 2010 and deploy it with a solution package in a feature. When I try to do it by just changing the .webpart file to a .dwp file and change ...
3
votes
4answers
19k 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 ...
3
votes
4answers
5k views

SharePoint 2010 List Rotator Web Part

Ok, so I would normally take the time to write this, but don't have said time to do it at the moment. I need a web part for SharePoint 2010 that does something very simple: display list items from a ...
3
votes
3answers
18k 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 ...
3
votes
2answers
235 views

Remove “+Add” from Calendar View Web Part

I have a Calendar View web part that I've placed in a SharePoint page. Right now it looks like this: I want to prevent the user from editing the list from here--I have an app that will take care of ...
3
votes
3answers
204 views

Developing a custom webpart to improve the page performance

I need a suggestion for a specific development requirement; it is just for a sub-site. The sub-site has a single list with 20 columns and 850+ items. Now, in the home page, I have to have there ...
3
votes
5answers
12k 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 ...
3
votes
4answers
720 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
2answers
722 views

Custom webpart being rendered twice on layout page

using System; using System.ComponentModel; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using Microsoft.SharePoint; using ...
3
votes
3answers
1k views

Can I use a ListView in a web part?

I went to add a ListView to a visual web part I had created and it didn't show up in Intellisense. I figured it was just a hiccup in the intellisense so I just typed it in manually but when I run the ...
3
votes
2answers
111 views

Location aware Silverlight webpart

We are designing a system where we will have a site per customer. The site will be created based on a custom site template. This site will have a Silverlight webpart, that will get data from a ...
3
votes
1answer
2k 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 ...
3
votes
1answer
2k views

Check to see if a web part exists on a page using SPLimitedWebPartManager

In a feature I need to check if a part is already on the page. How can this be performed (programatically) (i.e. through a feature) thx
3
votes
5answers
667 views

Automatically add tag to uploaded document in sharepoint

My environment is sharepoint 2010 and vs 2010. I already have an OOTB document library that I am using and I wanted to know how I can add a tag or keyword to a METADATA column. I am using the same ...
3
votes
2answers
617 views

A-Z view for a document library

Is it possible to create a webpart for document library that will look like this? http://i.stack.imgur.com/EU952.gif
3
votes
5answers
2k 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 ...
3
votes
4answers
3k views

How do I display the results of a CAML query on a data grid in sharepoint 2007?

I want to develop a custom web part for SharePoint 2007. How do I display the results of a CAML query on a data grid? The grid view should be customizable, and should not adversely affect performance. ...
3
votes
2answers
1k views

What are the disadvantages of Visual Web Parts?

I am really wondering what the disadvantages are when using a Visual Web Part. All the books and articles on the internet only talk about the pros. But I am sure the are some disadvantages, beside the ...
3
votes
4answers
6k views

When does custom properties of a web part get saved?

I have a web part that contains a number of custom properties. Only one of those customer properties shall not be set by the user. This property is an int, that represent a unique identifier. I want ...
3
votes
6answers
4k 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 ...
3
votes
4answers
2k 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 ...
3
votes
1answer
627 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 ...
3
votes
3answers
493 views

can one use HTML5 tags in Sharepoint 2013 out-of-the-box

I want to know if i develop a visual web part, can i use html 5 tags in .ASCX file without adding any link to source or making changes to master page ?
3
votes
1answer
1k 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 ...
3
votes
3answers
2k views

How can I remove the tables rendered around the webparts in the Rich Content area?

How would I override the tables rendered around the webparts in the "Rich Content" area? I have successfully removed the tables around webpartzones and their webparts but can't figure how to remove ...
3
votes
2answers
2k views

How to refresh the parent page using Server side API when the sharepoint modal dialog close?

I have a Web Part with a grid view and a linkbutton for add item. I use this code for show modal dialog when linkbutton click . ...
3
votes
1answer
2k views

How to import external javascript in a User Control?

I have a code-behind User Control (myUserControl.ascx and myUserControl.ascx.cs) that are in ControlTemplates/MyFolder/ and, in the code of myUserControl.ascx I need to use some javascript ...
3
votes
2answers
487 views

Deploying a Web Part to a single Site Collection using WSPBuilder

I am working with Visual Studio 2008 with the WSPBuilder add-in, and WSS 3.0. When I create a Web Part feature and deploy it to my SharePoint site, it is available to every site collection in the web ...
3
votes
3answers
1k views

Possible to programmatically display a list of all web parts and dynamically render on a page?

Is there anyway to use the object model to display a list of all web parts installed (say in a list box)? If so would it then be possible to render that web part on a page if it were selected?
3
votes
1answer
1k views

Webpart Custom Properties

With this attributes decorating the Properties of a Web Part... [WebBrowsable(true)] [Category("Common Settings")] [WebDisplayName("Show tab header")] [WebDescription("Show tab header for the News ...
3
votes
1answer
718 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 ...
3
votes
2answers
448 views

How to publish blog posts on behalf of another user in SharePoint 2010?

I have blog for our management team. Assistants will be posting instead of the managers. I have created a column called "Author" which is "people/group" lookup field for the assistants to add a person ...
3
votes
3answers
3k views

How to change active directory password from webpart?

How to change active directory User Account Password using code?
3
votes
1answer
1k 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
2answers
2k views

Structuring wiki pages with templates in SharePoint 2007

I need to create a custom template for SharePoint 2007 wiki pages. With ability to add multiple web parts zones on Wiki Page. Is it possible to do that, as I have read from online that wiki pages in ...
3
votes
3answers
1k views

problem deploying webpart on a farm

a customer has a problem deploying a webpart I developed for them on a farm. The webpart is packaged as a .WSP solution with WSPBuilder and it seems to work fine when deployed to a single server. ...
3
votes
1answer
343 views

Get web part TypeName using CSOM

Can we retrieve the TypeName of a web part using CSOM?
3
votes
2answers
2k views

Custom Page Layout in Sharepoint 2013 Foundation

Sharepoint comes with a set of Text Layout Templates. How can I create my own custom Text Layouts under Sharepoint 2013 Foundation. What I'm trying to achieve is a shown below. PS: I do not have ...
3
votes
2answers
76 views

Can a custom SharePoint 2013 web part act both as a consumer and a provider without the need for postback?

I am looking for a general method of implementing a web part that is both a consumer and a provider, without the need for an initial postback or redirect. I need to establish whether this is ...