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)

1
vote
1answer
785 views

Multiple instances of webpart with custom EditorPart and SilverLight won't work with separate settings

I have a problem using multiple instances of a web part using custom properties. I made a web part using SilverLight 4, VS2010 and SP2010. The Web Part passes some custom properties to SilverLight ...
2
votes
0answers
702 views

Extending the ConsolidatedNewsFeedWebPart Newsfeed Web Part in order to render custom Activity Events in SharePoint 2010 MySites

The title says it all and I imagine this question will evolve as more people provide input. I will try to update with the current answer and/or working code for all to use. The question is about ...
2
votes
2answers
919 views

How to stop the XML being returned by a list view web part from truncating a value

I have an Announcements list. In my view I am returning the body. When displaying the body field in a list web part, the body field is being truncated and '...' is added to the end. When viewing the ...
4
votes
2answers
656 views

Contributors can't seem to save personalisable web part properties?

I've using the following code to save the week a user is currently looking at, for next time they view the web part: private string _week = null; [WebPartStorage(Storage.Personal)] public string ...
2
votes
2answers
3k views

SharePoint 2010 video player with playlist

Is there a free component to serve as an audio/video player with playlist support in SharePoint 2010? We need to have it get its playlist from a SharePoint list of URLs to media files. We'd drop it as ...
1
vote
0answers
42 views

Which Web Parts should get installed in SP2010 Update?

Per Dave Wise's answer(http://sharepoint.stackexchange.com/questions/13110/get-web-part-name-from-guid): Thanks, that worked great. However, even though my SQL Query returned 9000 results, about 18 of ...
1
vote
1answer
79 views

Properties are null while DataBind

I'm having a spgridview in a visual webpart. The datasource of this gridview is written in the ascx-file and has a selectmethod in codebehind. The problem is that while the datasource does it'S ...
1
vote
2answers
686 views

SharePoint 2010 - Find WebPart in WebApplication

I´m searching for an good way to find the ContentQuery WebPart in my WebApplication. My plan is to write a PowerShell script and create a url list. I found the following possible ways: SharePoint ...
1
vote
1answer
779 views

Building a custom web part for SharePoint 2010

I'm interested in building a custom web part for SP2010 that's editable by the page editor via the web part menu's "Edit Web Part" option; specifically, I'd like to start with this: ...
1
vote
1answer
1k views

Content Query Web Parts are not showing up in pages with the Page Layout they are set to

I'am back again with another question. I have a Pagelayout and want to add a Content Query Webpart as Menu. I created a Webpartzone and added a Webpart. <WebPartPages:WebPartZone ...
1
vote
1answer
310 views

Collapsable menu in place of quick launch for a subsite

I have to create a collapsable menu for a subsite, which replaces the default menu in Quick Launch. And, the items of the menu are dynamic on the basis of content in list and lookups. I have ...
0
votes
2answers
414 views

Webpart custom property not saving at first

I created a webpart with custom properties but once the webpart is added and the settings changed, it doesn't take effect until a publish or check in share draft. Clicking in OK or Apply in the ...
2
votes
0answers
662 views

How to edit web part properties in the UI that was added in SharePoint Designer?

Let's say I create a custom page layout in SPD. Instead of adding a web part zone I add a web part (let's say content query web part) in the layout. When I go to a page using that layout I can see the ...
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
0answers
76 views

Having problems identifying the missing Web Parts from the GUID for Upgrade of 07 to SP2010? [duplicate]

Possible Duplicate: Get Web Part name from GUID I have ran the preupgrade checker. I've also ran the enumallwebs command. I have over a hundred different web parts missing, that the ...
1
vote
2answers
3k views

Disable menu/editing of a specific web part

I want to either disable the menu of a specific web part on my SP-site, or instead disable the "Edit Web Part" function. This is not for the whole page, but for that specific web part. Any ...
4
votes
2answers
2k views

Changing a view doesn't automatically reflect on page

We've got a simple view for a list. When we add/remove columns, the view doesn't automatically reflect the changes; we have to go to the publishing page, click Edit Web Part, and re-select the view in ...
4
votes
1answer
60 views

How can I add a global control to check user has updated her/his profile?

Is there any control/feature/webpart I can add to trigger a functionality globally in any page on a Sharepoint? I now have a webpart on the homepage that checks if a user is due to update her/his ...
0
votes
1answer
167 views

Available web part width

Is it possible to find out the available web part width in px via JavaScript? Because I need to set the size of a component manually.
1
vote
1answer
966 views

SharePoint: how to update webpart that's substituted by ErrorWebPart

We are having problems with our CQWPs when deploying our site to another environment. So the original issue was, the ListGuids are different on each environment so the CQWP throws an error after ...
1
vote
2answers
861 views

Is there a web part the will display Quicktime (.mov) files?

Ideally like the media web Part displays .wmv files, but it could be some pre-existing webpart that simply writes the proper EMBED code to the page.
1
vote
2answers
737 views

How to refresh a Sandboxed web part after leaving Edit Display Mode?

I have a test SP page hosting a Sandbox WebPart, code only. The WebPart in turn contains a GridView. I'd like to refresh the WebPart (actually, to fire the GridView-ObjectContainerDataSource ...
2
votes
2answers
2k views

How to Show the loading message

i am working on a custom web part where i have a few dropdowns in the tool pane so it take a while to load the dropdownlist and i have total three dropdownlist... i need to show the Loading message ...
2
votes
2answers
6k views

Displaying a survey on a web part page

Is it possible to show a survey on a web part page? I have a survey called Do you like my site. I see there is a webpart created for my survey automatically. When I add it to the page I get the ...
2
votes
1answer
467 views

PageViewer setting Height/Width

i am creating a dynamic Page Viewer web part from the user control code behind .. something like this: PageViewerWebPart oWebPart = new PageViewerWebPart(); oWebPart.ContentLink = ...
4
votes
1answer
6k 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
5answers
3k views

Webparts in the left side bar

Is it possible to get webparts in the left side bar? I have a custom .master page and the business wants more items on the left. From what I can see with web parts you can only put them in the ...
1
vote
1answer
4k views

GetUserProfile Method Failure

I am trying to understand why the following error occurs. It seems to me that this fails whent the _userName does not have a My Site. I have seen that this code works in environments where My Sites ...
0
votes
2answers
91 views

MSDN example scenario

I am working with the MSDN example scenario creating creating a custom web part. Can anybody tell me why is it showing the square bottom div below (see in the image). It says "Bottom" and it ...
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 ...
1
vote
3answers
6k views

Sharepoint 2010 and Saving variables in VIEWSTATE

UPDATE1 I tried with EnableViewState in Page directive: but no avail. End I am running as a usercontrol in sharepoint. (using SmartPart) Everything's fine. Just the Viewstate-Variables! The ...
0
votes
1answer
558 views

how to access or have reference using web parts?

public partial class VisualWebPart1UserControl : UserControl { public string SetId{ get; set; } protected void ddl_SelectedIndexChanged(object sender, EventArgs e) { SetId = ...
0
votes
3answers
2k views

SP 2010 The maximum number of Web Parts for all zones on this page has been exceeded

I am developing SharePoint web parts and as soon as I click on the left navigation to add a web part to the page I get the below error. I am using SP 2010 VS 2010 Server Error in '/' Application. ...
1
vote
3answers
2k views

Save webpart (html) as PDF file

I have a webpart that is specialized business calculator. Once the user puts in the details of the contract, they need to save the web part (in pdf format) as part of the contract documentation. I ...
2
votes
1answer
612 views

SharePoint Content Query Web Part Group By, expand/contract

On my SharePoint 2007 site, I have a custom list. This list has a column "status" (with values "open" and "closed"). I can create a view on the list that groups by "status", and the view creates nice ...
1
vote
3answers
459 views

Change Doctype for one Site

I'm very new to sharepoint development and I would like to know, if it is possible to change the doctype in SharePoint just for one page (or better for a webpart, I think just for a webpart or is it ...
0
votes
1answer
647 views

JQuery Autocomplete with ashx

I can't make autocomplete work with ashx and the handler is working fine. Here's the scenario: 1- JQuery files are properly referenced 2- ashx is deployed in /layouts and working (got this to work ...
3
votes
1answer
695 views

Custom web part as consumer and provider for other single web part

I have a task to create a custom filter web part (CFWP) for standard List View web part (LVWP). I decided to use a connection framework for this task and designed next concept: LVWP is a provider ...
1
vote
1answer
99 views

Show a webpart on every page automatically

Is it possible to add a web part on every page of a subsite automatically? Can the web part use the same config as the other pages it is one?
4
votes
2answers
4k views

Understanding problem: How to add a stylesheet to a web part

Well, I try to add a css stylesheet to my web part but it didn’t work… I read that there are many ways to a css file into a web part, but I didn’t understand them…. First I installed the Sharepoint ...
2
votes
4answers
2k views

Sharepoint SPGridView Data Reneder-SQL

I am tryiny to display a column from SQL Server Databse in Sharepoint Environment. I am using SPGridView for Consistent look and feel. There is stored procedure called "sp_GetMyApplications" which ...
0
votes
1answer
1k views

SharePoint 2010: Set character limit of news webpart without SP Designer?

The SharePoint 2010 news/announcement webpart cuts off messages after 250 characters. I would like to set a higher character limit. All solutions I have found so far involve SharePoint Designer which ...
0
votes
1answer
533 views

Add more levels to the Table of Contents web part?

Is it possible to add more levels in Content -> Levels to show in the OOTB Table of Contents web part? Could this be edited in some file or do I need to build a custom web part in order to get more ...
0
votes
1answer
386 views

Nesting webparts programatically

I have a user requirement to add a webpart inside another; I am creating a tabbed container webpart, inside which the user wishes to add other webparts. How can this be achieved?
1
vote
2answers
2k views

Getting list information into a dropdownlist

I have a list containing fields "FirstName" and "Status". The "Status" field is a dropdown list containing "New" and "Published" options. I intend to code a visual webpart that will display the ...
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
2k views

How to make a CAML Query union?

I have a webpart with several CAML Querys that look like this: SPSiteDataQuery qry = new SPSiteDataQuery(); qry.Lists = "<Lists ServerTemplate='104' Hidden='TRUE' />"; qry.Webs = "<Webs ...
1
vote
1answer
643 views

Visual web part properties - override drop down list text

I have an visual web part with custom enumeration property which is rendered as drop-down list. I'd like to localize what is displayed in the list, because it's not very informative for the end user. ...
0
votes
2answers
338 views

SPGridView SQL Server Data..Display

Any example code in C#.net with webparts, how to connect to SQL server and display a table data in SPGridView.
0
votes
1answer
2k views

Localizing ASP markup in webpart issue

In my web part I have an label, which I want to be localized: <asp:Label ID="AppJSTNameLabel" runat="server" Text="<%$Resources:AppListWebPart,NoSelection%>" /> I have mapped Resources ...