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 ...

learn more… | top users | synonyms (3)

2
votes
2answers
3k views

Can’t add deployed web part to SharePoint (web part missing)

I’m trying to add my first web part to the working environment and have some problems with the deployment. I clicked on my development machine release and copy the *.wsp file from the "bin/release" ...
0
votes
2answers
2k views

When should we call EnsureChildControls()

According to Microsoft,The EnsureChildControls() method is called in order to make sure that child controls have been created. I see many developers call EnsureChildControls() in ...
3
votes
2answers
846 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
1answer
802 views

Sandbox Web Part without Site Collection Administrator permissions?

Is there a way to get a Sandboxed Web Part deployed without Site Collection Administrator permissions? Here is the situation: I have Full Control permissions of the Site Collection's Root Web, ...
1
vote
2answers
700 views

Web part will not be shown on a wikipage in edit mode

I created a web-part using Telerik AJAX components. If I insert the web part in a sharepoint wiki page, the web-part is not shown. But if the wiki page is beeing saved with "save & close" the ...
2
votes
4answers
23k 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. ...
2
votes
0answers
127 views

Application Pool stops-Deploying a Webpart-SP2007

I am using sharepoint 2007 and VS 2008. Sometimes after deploying the webpart, the application pool stops and need to start it manually. I do not know why this is happening?
1
vote
3answers
7k views

Getting error “Attempted to use an object that has ceased to exist.” when adding web part

I have created a web part in visual studio, it deploys fine, but when I try to add it to a page I get the following error: Attempted to use an object that has ceased to exist. (Exception from ...
6
votes
3answers
1k views

How do I find out what's wrong with my sandboxed solution in SharePoint Online?

I have created a custom web part which presents a form to create a SharePoint site below the current site, while performing some ancillary actions like updating a list of subsites on the front page to ...
1
vote
1answer
101 views

How can you change the alert text on a pop-up

I am working in the advanced search and am trying to change the message that gets displayed in an alert box (see image below), can anyone help please?
1
vote
1answer
1k views

Why do I need to register System.Web.Extensions in my ascx page when I add a Visual Web Part?

If I don't add this at the top of my ascx: <%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.WebControls" ...
1
vote
1answer
538 views

asp:Wizard control in web part

I need to make a web part with a quiz (or exam). Tests and questions are stored in 2 separate lists, so I want on the first step to select an exam and based on that selection I want to add steps ...
1
vote
1answer
1k views

Custom web part throws error when I try to add it to page

I am working on a custom web part, that keeps error out with: A web part or web form control on this page cannot be displayed or imported. the type is not registered as safe any time I ...
1
vote
1answer
886 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
815 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
986 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
764 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
43 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
84 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
761 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
882 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
363 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
464 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
804 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
3k 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
62 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
207 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
1k 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
1k 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
782 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
7k 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
506 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
8k 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
6k 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
100 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
6k 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
7k 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
620 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. ...
3
votes
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
714 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
577 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
697 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 ...