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)

3
votes
3answers
4k views

How to change active directory password from webpart?

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

XsltListViewWebPart and custom link column

I have a XsltListViewWebPart with a custom link column used for change a value on current listitem using JavaScript. <a href="javascript:ApproveRejectRDA('{@ID}', true);" title="approve"> ...
3
votes
1answer
2k views

Call WebMethod from JS in Visual web Part

I have ASP.NET web app that call some WebMethod from javascipt and fills textboxes. This is not all code, just example codesnippet function dataApp(text) { var loc = window.location.href; ...
3
votes
1answer
427 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
102 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 ...
3
votes
2answers
2k views

Show a message while loading modal dialog

I'm loading a modal dialog on a web part. Sometimes it takes a lot of time to load, like 6/7 secs. Here's the code: function Init(title, id) { var dialogOptions = SP.UI.$create_DialogOptions(); ...
3
votes
1answer
240 views

Porting Web Parts to Office365 (SharePoint 2013 )

I've been in the process of developing a site in SharePoint 2010, which is composed of a set of different Farm deployed Web Parts. I was wondering what the process was for porting them to SharePoint ...
3
votes
3answers
2k views

Can't rename “Title” field in List Definition

I can't rename "Title" field to "Unit Type" Here is my Schema.xml: <?xml version="1.0" encoding="utf-8"?> <List xmlns:ows="Microsoft SharePoint" Title="PrCenter - StatisticsDef" ...
3
votes
1answer
2k views

Web Part zone index not working

I am installing a web part on a few different pages. I have set my zone index to 0, yet they still wind up below the other web parts on the page. Here is my code: TasksWebPart ...
3
votes
2answers
733 views

SharePoint webpart and application page

I need to make an application page or a webpart that have a javascript code and i tried to add the jquery i a new project to upload it to the SharePoint but the code didn't work this is the code that ...
3
votes
3answers
511 views

jquery projects and visual studio best practices?

Just curious how others are handling their jquery related solutions. It's obviously very easy to add a Content Editor web part with a content link to a source file. That file could have your ...
3
votes
1answer
1k views

~site / ~siteCollection token replacement with sandboxed solutions

It seems you cannot use the ~site or ~siteCollection tokens in an Element.xml when you deploy as a Sandboxed Solution. Has anyone ever seen this behaviour? Code snippet: ...
3
votes
3answers
2k views

Content query web part

I'm using SharePoint 2007. I need to use "Content Query Web Part". This web part displays a link to the item, I need the content type to show me all the rows (item). Is that possible? I do not want ...
3
votes
1answer
1k views

Dynamically display a single row of a custom list

In SharePoint 2010, I have created a custom list and I want to be able to display a single row of this custom list on page. But I do not want to create a separate page for each row. I would like to ...
3
votes
1answer
82 views

Webpart error is shown when a user does not have permission to see it

I am facing a strange Webpart error. Users not having permissions to view a list should be unable to see the web part at all, instead they see a web part with a permission error. Is there a way to ...
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 ...
3
votes
1answer
2k views

ListView Web part - customization

I created and deployed link list (default template (103)) from code and after that I added ListViewWebPart also from code which looks on default view of my link list. And that works. Problem: How can ...
3
votes
1answer
541 views

Preupgrade check reveals webpart issues which are not installed on farm, how to identify the name, assembly of the referenced webparts

I have run a preupgrade check on a SP2007 database to identify issues prior to upgrading to SP2010. The report shows a lot of messages for missing webparts. The strange thing is that I cannot identify ...
3
votes
2answers
5k views

Changing colors on calendar view

I have a calendar list setup. My customer could like to give the appointments in the calendar view (by default green) a different color based on the category; much like the way Outlook does it. I ...
3
votes
2answers
744 views

How to put web parts on publishing pages?

Scenario: On a intranet page there is several site verticals (hierarchies) (e.g products and services). Now I want for each site to have a familiar welcome page. How is it best to put web parts on ...
3
votes
2answers
3k views

SharePoint 2010 RSS Viewer Web Part Fails to Load

Has anyone seen occurrences of the SharePoint 2010 RSS Viewer web part failing to complete loading when the page loads, instead remaining in constant "loading" mode with the Ajax indicator showing? ...
3
votes
2answers
490 views

Activity stream for SharePoint 2007

Are there any web parts for SharePoint 2007 offering an activity streaming facility?
3
votes
2answers
4k views

Can't add web parts to a page as a user with Full Control

As a site collection admin, when I go into subsites and choose "Edit Page", and the "Insert" tab, I see a long list of categories for web parts in the left hand panel. However, when I log in as a ...
3
votes
2answers
196 views

How can I create a web part for add update and delete operations?

I'm new to SharePoint and I'm working with web parts. I have learned how to create a basic webpart and how to deploy it...but I don't have any ideas about how to create a web part that adds updates ...
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
1answer
138 views

How SharePoint apps affects SEO in websites?

I'm developing an internet facing site using SharePoint 2013. For some parts of my homepage I need dynamic parts which I have to decide between Web Parts and Apps. I've heard that SharePoint Apps ...
3
votes
2answers
397 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
1k 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
1answer
1k views

How to set start and end date in Timeline webpart in SharePoint 2013?

So here is the scenario. I want to "hijack" the Timeline webpart used for project sites in SP2013 and set a fixed start and end date. There is an option to lock the timeline in it's current state in ...
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
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
428 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
1k 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
1answer
671 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
858 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
1answer
59 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
203 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
3answers
1k views

No way to restore a Post.aspx blog view?

A bug in SharePoint 2013 which breaks the Posts.aspx page. Reproduce: 1) Click on the title of any blog post to open up the Post.aspx?ID=N view. 2) Place the page in edit mode and then place the ...
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
389 views

Create Password Field in webpart properties

I have created a custom web-part. this web-part have a custom web-part properties. i want a Password field in this property. How can i do this ? Any help will appreciated ..
3
votes
1answer
976 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
125 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
447 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
3k 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, ...