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
2answers
226 views

Which web part is this?

When i create a blog site from the blog site template, it automatically adds this web part called "Archives". Now i would like to know how to add archives, and i would like to know the name of this ...
0
votes
1answer
950 views

Is it possible to restore the Blog Tools web part without exporting it to the gallery?

On SP Blogs, users are removing the blog tools web part from the default.aspx page. From what I've seen this isn't in the web part gallery (at least not in our environment). Is it possible to restore ...
1
vote
2answers
3k views

How to add code-behind to a User Control?

I have a User Control (myUserControl.ascx) with the code: <div id="content"> TEST USER CONTROL <div> that is called from a webpart: protected override void OnLoad(EventArgs e) ...
0
votes
1answer
975 views

category search not showing up in web part list

When i try to add a standard Search web part to my home page i cannot see the category search. In one of my site collections it is available, but in the other site collection it is not. Now i know it ...
2
votes
1answer
535 views

What is neccesary to write to filesystem from a Web Part?

How can I allow a web part to create a file on a unc path? I have a location with ntfs permissions set to everyone\full control and am getting 'access denied' messages. The SP2010 app pool is running ...
1
vote
2answers
5k views

How to know the path of the ascx in the Page.LoadControl?

I have a Webpart with a "main class" named myClass public class myClass : Microsoft.SharePoint.WebPartPages.WebPart and I want to load a ascx file from this class like this ...
2
votes
2answers
612 views

How do I disable the web part export option?

I have the requirement to not allow users to export my custom web part. How do I disable/hide the Export menu option?
1
vote
2answers
459 views

Unable to add two ajax web parts on same page

I created two similar visual web parts (one lists top 10 "popular-content" items, another top 10 "new content" items) with ajax support. For querying data from list (in both wparts) I use similar linq ...
1
vote
1answer
530 views

DIV with float:right doesn't work if web part on left

On SharePoint 2010, is it possible to correctly use float:right on a DIV and have web parts flow to its left in another DIV? I've tried this but the web part ignores the float and writes its content ...
2
votes
4answers
6k views

Content rotator for SharePoint lists

I'd like to build a content rotator web part for SharePoint 2010 to display list information. I'm working with the ever-popular AnythingSlider. A couple of questions: How would I let the page author ...
5
votes
7answers
5k views

What is the proper way to add jQuery to a MasterPage?

Currently I am using this method in the header: <script src="/_layouts/MNCAssets/scripts/jquery-1.5.1.min.js"></script> But for some reason, my webparts that use jQuery don't appear to ...
0
votes
0answers
69 views

Is the javascript in my webpart executing before the javascript in my MasterPage? [duplicate]

Possible Duplicate: What is the proper way to add jQuery to a MasterPage? I have a few webparts that use jQuery. Instead of adding the jQuery in each web part I decided to add it in the ...
0
votes
2answers
385 views

The following file(s) have been blocked by the administrator: /SitePages/ [closed]

Updated: According to the MSDN documentation, the ContentLink property can be a Url or file path. You can specify the SourceType property of the webpart so that it knows what to expect for the ...
2
votes
1answer
1k views

Creating Page Viewer Webpart Programmatically

I am trying to find a way to add Page Viewer webpart programatically and display the website in it...., i have a requirement where i will pass the url to display in the page viewer... below is the ...
3
votes
2answers
705 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 ...
2
votes
4answers
1k views

Creating a news site with out-of-the-box web parts?

In my company we have these periodically released news bulletins. One news bulletin is one html page. Now I am looking for a way to create a decent overview of these bulletins whilst also displaying ...
7
votes
1answer
570 views

Is it possible to hide a webpart from webpart gallery programmatically?

Is it possible to hide it? I'm developing a webpart for a special page and it shouldn't be possible to place it somewhere else.
1
vote
1answer
785 views

How to add a Toolpart in a CustomPropertyToolPart?

In a Webpart I have some customs properties. For the strings, booleans and enums, is all ok, but I have a problem with the selects (comboboxes). To use a select I needed to create a Toolpart that ...
1
vote
1answer
747 views

sharepoint announcement web part

I'm using SharePoint 2007, and I'm using the announcement web part. I have writed long description in the announcement web part. the default possibility, sharepoint display 3 line from the ...
1
vote
2answers
1k views

How to create a “select” custom property?

In a Webpart I want to set some customs properties. I have this code [Personalizable(PersonalizationScope.Shared), WebBrowsable(true), WebDisplayName("myName"), WebDescription("myDescription"), ...
1
vote
0answers
618 views

Page Viewer Web Part not working

I am using a page viewer web part to display linkedin on my sharepoint site. When i use this web part on my sharepoint stand alone server everything works just fine. When i try it on my sever farm ...
2
votes
1answer
489 views

How best to create CQWP and test

I'm working in SharePoint 2010 Server and creating custom content query web parts (CQWP) that point to custom ItemStyle_myTemplates.xsl file. To do this, I've been creating the CQWP in the browser by ...
1
vote
3answers
8k 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 ...
0
votes
1answer
42 views

Use column info in another column

I am using a standard web part wich relies on html code to render an animated image. The data to create this image is stored in a column of a custom list, so i have a column with html format. What i ...
2
votes
2answers
887 views

Display list of file(s) within document library

Scenario : Sharepoint 2010 foundation site with a document library. The library has many folders (and probably sub-folders in each folder). There are files in these folders/sub-folders. I am looking ...
-1
votes
2answers
419 views

webpart interview question, whats wrong with it or better way of doing this [closed]

this is like an interview question given to me by someone, can you tell me whats wrong with it or if there is a better way of doing this. this will be run in a large enterprise. NOTE : Demo.Tasks.Task ...
16
votes
4answers
10k views

SharePoint 2010 Application Pages. vs. Web Parts

I have done many a search on this issue with mixed results and ensuing ambiguity. The time has come to nail it down for good. If I'm developing the equivalent of a complex ASP.NET application, and I ...
2
votes
5answers
6k views

How can I show announcements from a different site collection?

We have a site collection at the top level to create the navigation between the different site collections of all departments. The desire is to have a central announcement board on the main page of ...
3
votes
1answer
1k views

Connecting web parts to metadata navigation in document library

Is it possible to read from the metadata navigation in a document library so that the selected value(s) can be passed into another web-part (in this case a CoreResultsWebPart ). The IsNodeSelected ...
1
vote
2answers
115 views

Exposing contents of multi-rich column in a custom webpart

Scenario : Sharepoint 2010 foundation site with a custom ASPX page. The custom ASPX page has a webpart wherein I read the contents of a multi-richtext field from a list. I want to know within the ...
0
votes
1answer
795 views

Creating tabs in a sharepoint webpart using multiview

I would like to create multiple tabs within a webpart using "Multiview". There are lot of examples available for creating tabs using "Multiview" or "TabControl" but that were in asp.net pages. So I ...
0
votes
3answers
3k views

SharePoint 2010 I cannot see custom folder after deploying a webpart

I have a SharePoint 2010 server and a development pc. I installed Visual Studio 2010 in my pc, and I created a web part. After I build the project I got the CreateTaskWebPart.wsp and ...
0
votes
1answer
1k views

SharePoint 2010 - Edit WebPartPage not possible

I want to edit a SharePoint 2010 WebPartPage over the GUI. But when I press the edit button, nothing happens. Only the webbrowser (IE8) displays a javascript error on the page. Knows anybody this ...
0
votes
1answer
78 views

call method in webpart

I'm trying to debug the code below. For some reason the GetUserProperties Method isn't called during debug. Can someone tell me how i'm able to call it? I wan't to display the user-properties in an ...
1
vote
1answer
2k views

Script Manager in SharePoint pages

I am working on some mobile web parts and have got into a problem. My issue is that I have a custom web part which is a mobile web part. I have got everything working and I can see the web part in ...
1
vote
1answer
760 views

How to add Excel web access web part in WSS 3.0

I'm new is SharePoint and struggling with adding web part. I'm using WSS 3.0. I want to add Excel Web Access Web Part, so I go to site Actions -> Web Part Gallery and try to upload .wdp file which ...
1
vote
1answer
133 views

How do I load user controls in mobile web parts?

I want to load a user control like in a regular web part but in a mobile web part. The regular method of doing it: private const string _ascxPath = ...
0
votes
2answers
386 views

Web Part Activation Error

I am developing a web part and suddenly receive this error when activating it from site settings. System.InvalidCastException: Unable to cast object of type ...
1
vote
1answer
311 views

how to identify webparts by their element in the DOM

I'm working on some DOM scraping in SP and I want to tighten up my logic around web-parts. Namely, is it safe to say that anything with a attribute of 'webpartid' is a webpart? Some sample ...
2
votes
3answers
2k views

SharePoint 2010 - Add WebPart to a Web with PowerShell

I want to add a webpart to a great number of existing pages. Is there any PowerShell command to add a webpart to a webpart page?
0
votes
2answers
961 views

Web part and content type

I'm using SharePoint 2007, custom list. I have created 2 content type on that list. on the home page I create 2 web part. I want that each content type appear in one web part. is it possible?
1
vote
1answer
365 views

Unable to install hotfix to solve Search web part error?

This is the exception I get when I do a basic search: CoreResultsWebPart::OnInit: Exception initializing: System.NullReferenceException: Object reference not set to an instance of an object. ...
1
vote
1answer
78 views

the connection between list and the list view from the web part

I’m using SharePoint 2007, Custom list. I have created 2 difference views on my list. on the home page I create 2 web-parts, one for each view. I need to implement the next thing: When I ...
1
vote
3answers
4k views

Help - how to create a “quick poll” web part

I would be creating a simple "quick poll" web part (single selection). I'm hoping if someone has tried it and could tell me how he/she figured it out? Thanks.
2
votes
1answer
5k views

SharePoint 2010 - Change Password WebPart?

I´m searching for a free SharePoint 2010 WebPart to change the password from the current user.
1
vote
2answers
602 views

Web Part connection not pre-selecting lookup value

I have 2 lists: Users Notes Notes has a lookup field that links it to Users (ContactName) I have added a Notes WebPart to User's Edit Item screen. Now when you edit a user, it shows a list ...
1
vote
0answers
349 views

Sharepoint 2010 WebParts Rendering in different zone then assigned

In my sharepoint page layout I have a control that has WebPart Zones. For mobile devices I would like to render a different control that would contain only some WebPart Zones from the original one. ...
1
vote
2answers
611 views

FlexPaper in SharePoint 2010

I'd like to create a custom web part with the FlexPaper component so we can use it in SharePoint 2010. The user would go to the web part properties to select a SWF file (converted PDF) from the Site ...
1
vote
1answer
759 views

Federated Search Web Part result doesn't show up

i have followed theses steps in this page t to setup Federated Search with Bing Serach on MS SharePoint 2010 i did all steps but when i do search Federated Search Web part didn't appear , why i don't ...
3
votes
2answers
468 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 ...