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)

3
votes
3answers
2k views

Finding the Current User login in a Content Query Web Part?

I have the unique requirement of needing to get the current user's id (domain\logon) for use within a Content Query Web Part. If no documents are retrieved with the CQWP I need to craft a custom url ...
3
votes
2answers
2k views

Web Part error for preloaded web part zone

SharePoint 2007 Enterprise, SP2. I am getting a strange error (found in the ULS logs, Google reports no hits on the message itself) when trying to upload a page with a webpart preloaded in a zone: ...
3
votes
3answers
813 views

Fix for : A Web Part with this ID has already been added to this page

I'm trying to copy a Production Site over to my Development server using DocAve which I have done successfully many times. But I'm having a problem with a particular site. Even though it copies over ...
3
votes
2answers
561 views

Sharepoint Deployment not updating webparts

Alright. I have just made changes to a custom webpart that was already deployed to Sharepoint. I made a few deploys, some changes... and suddenly, a code that was in the front-end of the webpart ...
3
votes
1answer
709 views

how to customize OOB web parts UI

SharePoint 2013 brings a new concept of UI customization, via the JSLink, allowing to reconfigure the Web Parts UI aspect/behaviors, as exemplified by O'Brien here. Although, most of SPObjects ...
3
votes
2answers
797 views

How to load custom webparts in site page asynchronously in sharepoint 2010

In home page of my site i have some custom webparts. so home page is taking much time to load page,I want to load custom webparts asynchronously how can i do this. Does anyone have any idea.
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
1answer
2k views
+50

Use Credentials Provided to Sharepoint for Webservice Authentification

I created a webpart that is able to consume a service provided by Dynamics NAV 2009 R2. I documented in short what I did so far: http://shb.vps.bitfolk.com/nav-sharepoint.html I use the following ...
3
votes
1answer
778 views

Comma is being appended to values when adding new item to list through C#

I have a custom web part form which takes a few values from text boxes and adds the new row to a list. The problem is that when I click 'save', the values are being saved but some fields like ...
3
votes
2answers
2k views

CSWP “Value of a field on the Page” Questions/Issues

We're trying to create a seach query that grabs a content type based on a taxonomy field added to our custom Publishing Page content type. We seem to be having one of two issues: We don't know how ...
3
votes
2answers
3k views

Connection between 2 web parts

Im embeding two webparts in my sharepoint page using page viewer. One part is UI which takes input from user and on submit it shud be passed to other web part and it should get refreshed. can anyone ...
3
votes
4answers
16k views

Display List or Library on another site as WebPart?

I want to display my list on another site in same site collection. I edit List with SPDesigner, select the view and save it to site gallery. After these steps, I added the view webpart on my another ...
3
votes
1answer
1k views

Content Query webpart- CommonViewFields vs ViewFieldsOverride

I'm reading up on the Content Query web part and based on this page, I can't understand the difference between the CommonViewFields property vs the ViewFieldsOverride property. How are they different? ...
3
votes
1answer
456 views

Creating a custom Filter Webpart in SandBox? How-To?

Since a little while now I've been trying to create a custom filter webpart in Sandbox. So far, it seems that all the usual ways to create a custom filter webpart programatically ina farm solution are ...
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 ...
3
votes
3answers
6k views

Expanding and collapsing sharepoint webparts

I want to implement a collapsing/expanding feature to all my webparts in a certain page and tried the code shown here: http://moblog.bradleyit.com/2009/08/sharepoint-expand-or-collapse-web-parts.html ...
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 ...
3
votes
1answer
739 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 ...
3
votes
6answers
972 views

Security around Web Parts

I have been looking to wrap security around web parts. I already have security wrapped around documents so only the correct people see the allowed documents. The problem lies when a user does not ...
3
votes
1answer
6k views

How can I have a Rich text box in a custom webpart?

In a custom Web part (actually on the home page, but I think it doesn't matter), I want to let the users input some rich content, keeping the Ribbon functionalities; same as the OOB rich text columns. ...
3
votes
4answers
2k views

Problem debugging web part on SharePoint 2010 beta and Visual Studio 2010 beta

I have created a "Hello World" web part. When I pressed F5 in Visual Studio 2010, I got the following error. I have already got Microsoft SharePoint Foundation User Code Service started. Can anyone ...
3
votes
1answer
121 views

Script editor webpart ribbon problems

I added a script editor web part (javascript code) to a view page (/Forms/AllItems.aspx). After that I can not see anymore the File and List category in the ribbon bar. I read somewhere that ...
3
votes
2answers
575 views

search box above every column of list in sharepoint 2010

The problem I am having is that I want to show search box above every column in list in my sharepoint site. But the number of columns in each list are different. Is there a dynamic way to do so?? I ...
3
votes
1answer
1k views

Using the razor engine in SharePoint 2013 Visual Web Part

I'm trying to make use of the razor engine in a SharePoint 2013 Web Part. This, I read, shouldn't be too difficult since SharePoint 2013 Visual Web Parts can be built using .NET Framework 4.0 I'm ...
3
votes
1answer
157 views

Filter Webpart to match any column

I have a list of products with hundreds of entries. Each product has contact details with it as well as company information etc. I would like to be able to run a search on this list and return ...
3
votes
2answers
549 views

Can't hide the Blog Tools web part programmatically on blog site

I have an event receiver that modifies some web parts when a new blog site is created: using (SPLimitedWebPartManager wpManager = ...
3
votes
2answers
4k views

SharePoint javascript refresh page is reloading the whole page

In a webpart, I added a button that should trigger a modal dialog, and display a message when the dialog is closed. The dialog script is handled by this code : function OpenGenericForm(formUrl, ...
3
votes
1answer
625 views

Limiting the TaxonomyWebTaggingControl possible selections

Assuming I have a term set with all the countries. The first level is the continents The second level is the countries. No I am building a web part with a dropdown of the continents and a ...
3
votes
1answer
599 views

Why are web part connections in a template breaking?

We have a SharePoint site that we created based on a blank site template. We add lists, pages, webparts (including some connected web parts) and then save this site as a template (.wsp file). We ...
3
votes
1answer
3k views

Use one filter for multiple sharepoint lists

Can I define one list filter, and connect it to two lists on one web part page? I have two seperate lists on a page, both containing the 'author' column. Now, I want to add a filter to de page, so you ...
3
votes
2answers
3k views

How do I use QueryOverride in CQWP when deploying web part instance using Elements.xml?

I need to use the CQWP with more than three filters, hence I'm going to use the QueryOverride with a CAML query like described here. I can't get this to work when deploying the web part instance using ...
3
votes
4answers
14k 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
1answer
1k views

Web Analytics Web Part displaying “There are no results to display” message

I am a regular sharepoint user, not an administrator. I've create a Site under My Content and populated it with a dozen pages over the last 10 days or so. On the site home page I've added two Web ...
3
votes
1answer
1k views

Web part property - allow multi-line values

I have the following code in a webpart I am developing. WebBrowsable(true), Category("Data"), WebDisplayName("Banks"), WebDescription("Banks"), Personalizable(PersonalizationScope.Shared)] public ...
3
votes
3answers
306 views

Can I use EntityFramework and sql azure with Sharepoint Online?

I would like to connect to an entity model from a sandboxed webpart in sharepoint online. Is this possible? Is it possible to connect to sql azure from a sandboxed webpart?
3
votes
3answers
905 views

Profiling tools for Sharepoint 2010 web part .NET code

We are working on a pretty large scale project having large number of custom web parts with substantial amount .NET code working on Sharepoint server object model and the like. The normal profiling ...
3
votes
2answers
1k views

People search box results URL doesn't work

We are using SharePoint 2010. We are having a problem with the web part “People Search Box”. We created a custom page from a page layout and added the web part. We have edited the web part and ...
3
votes
1answer
731 views

Multiple Media Web parts for Videos in a list?

I want to create a video library for users to upload videos. These should be displayed with a Media Web Part. I would like to be able to have on web part for each video so it becomes a list like so: ...
3
votes
1answer
783 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, ...
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 ...
3
votes
1answer
510 views

How to remove the OOB appearance category from the web part tool pane (editor part)?

I am working on developing an (ASP.NET) web part for SharePoint 2010. I have a requirement to not to show the Appearance and Layout category which gets displayed by default in the web part tool pane ...
3
votes
1answer
849 views

WSPBuilder in Visual Studio 2010 for solution in Sharepoint 2007

I've installed the WSPBuilder extension for Visual Studio 2010 and I'm looking for a walkthrough of how to create a deployment package for my web-part. Can anyone point me to a good resource? ...
3
votes
1answer
620 views

Possible to add to to the “Additional Column Settings” for a Column in a list?

Is there any way that I can add an additional check box to the "Additional Column Settings" section of a Column in a list? I'm talking about the section pictured below: I don't even know where to ...
3
votes
2answers
141 views

Not able to add a webpart to a wiki page on teamsites

I have deployed a custom webpart to a TeamSite using Visual Studio. I get this error message when i try to insert it to the home page. "A Web Part or Web Form Control on this Page cannot be displayed ...
3
votes
6answers
2k views

How do I access an updated web part's property immediately after changes are applied to it?

I have a custom web part that has the default toolpart and one additional custom property. I have a use case that requires me to be able to access the value of Title within the web part (this.Title) ...
3
votes
2answers
2k views

Difference between Webparts and user controls?

Difference between Webparts and user controls?
3
votes
3answers
5k views

Default web part in web part zone for page layout

How can I set a web part so it will be automatically appended to a web part zone when a specific page layout is selected? The solutions I have tried so far is: Using <ZoneTemplate> under ...
3
votes
0answers
43 views

CRUD between two Sharepoint farm

Please give advice for this case. I have two separated SharePoint sites: The first site is in one SharePoint farm. On this site we contain the private data and we use this site as the internal site. ...
3
votes
0answers
190 views

SharePoint Edit Mode Javascript error in edit mode

I am not able to edit the page from the browser. I used to change and edit webparts when suddenly in the edit mode everything looks like it is locked/stalled. When I open the debugger tool, I saw a ...
3
votes
2answers
2k views

Document library webpart open to specific folder

Is there a way to have a document library web part open to a specific folder? I've been playing around for a few hours and I don't see a decent option any help is greatly appreciated