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)

1
vote
1answer
3k views

Refresh web part without refreshing page [duplicate]

Possible Duplicate: Refreshing custom developed web part I have a custom web part that displays items from a list. A user can select an item and edit the metadata on it. I want to refresh ...
2
votes
1answer
481 views

Sharepoint Toolpart Values Not Being Retrieved

I am looking to add custom properties to a tool part. I've been able to add the textbox as desired. I've been able to enter values and display it in the webpart. The problem is when I edit the ...
6
votes
5answers
6k views

Refreshing custom developed web part

I've developed a custom web part that pulls data from a list. It will only retrieve items where a field called ShowItem is equal to 'Yes'. Once the data is loaded the end user has the ability to ...
1
vote
1answer
1k views

Workflow column in a webpart on the home page issue

I have build a workflow using SharePoint Designer and attached it to a document library. The workflow itself is working with no problem. In the library, if I add the workflow column to the view, I ...
1
vote
1answer
133 views

Custom web part with deleted list

I have a Web Part which links to a list. I'm not sure if this is the standard, but the developers have hard linked the list to the web part so that this particular list is set as a default of sorts. ...
0
votes
1answer
306 views

Toggling listview web part content source

I'm trying to construct the following user experience. There's a set of links, let's say are in the content editor web part, which control which document library is display below. How would you go ...
6
votes
2answers
23k views

How do I change the background color of a web part?

I've got a document library embedded on the home page of one of my SharePoint sites. Someone changed the background color to grey, overriding the site's theme background color, which is white. I've ...
2
votes
0answers
873 views

Setting calendar control in a web-part as readonly

Is there any way to set calendar control in a web-part as readonly? I have a custom web-part which has a Calender control. In this web-part, I am populating a SPCalendarDataSource object from a view ...
8
votes
1answer
2k views

Toolbar to show the context of a ListViewWebPart

I'm using ListViewWebPart to display contents of SPFolder (subfolder inside a list) to display its contents. Below is the code to implement this: protected override void CreateChildControls() { ...
0
votes
3answers
6k views

What's the best way of removing whitespace from the top of my web part page?

Apologies for the simplicity of this one, I've tried lots of searches online but not found a solution. All I want to do is remove the whitespace above "My page title" so that the title sits at the ...
1
vote
2answers
9k views

How do get selected item of list?

I have a webpart .I add a listviewbyquary in createchildcontrols and a hyperlink in visualwebpart. i use this http://graegert.com/featured/using-the-editorpart-to-create-a-custom-listview-web-part ...
2
votes
0answers
537 views

CustomListView WebPart

I tried create and render CustomListViewWebPart . I tried with the following code. public class CustomListViewWebPart : System.Web.UI.WebControls.WebParts.WebPart { #region Variable Declaration ...
0
votes
1answer
1k views

Error while Populating new webpart to SharePoint gallery

I'm getting this error when I try to populate a webpart, Operation is not valid due to the current state of the object. at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded() ...
0
votes
1answer
380 views

Unable to display list items in custom View after adding items to list through code

I have created a custom list in MOSS 2010 that has a column type of Person/Group. I am storing AD username in that column. Also, I have created a view for the list that is filtering data based on the ...
0
votes
2answers
5k views

How to remove “created by” on SharePoint blog post item?

I recently created a blog site and posted few blog posts but then I realized that "created by" column is showing on the item. I tried to check what page layout a post is using but I simple found ...
2
votes
2answers
562 views

Custom tab on contenttype not working in webpart

I've created a custom ribbon tab that shows for a specific contenttype like this: <CustomAction Id="IncomingDocumentTab" Location="CommandUI.Ribbon" ...
0
votes
2answers
218 views

Switch off web part's events

I'm brand new to Sharepoint. How can I switch off web part's events like click and mouseover over title?
6
votes
2answers
8k views

Is it possible to add web parts to an application page?

I was asked to add a list view web part to an application page. I added a web part zone into the page markup. I got a security error when I tried to add it so I added a form digest control (not sure ...
2
votes
2answers
7k views

How do I add dropdown list of titles from list in the configuration part of a web part?

I'm programming a Web Part in Visual Studio 2010 with SharePoint 2010. It will post content that users choose from the configurable part when you click on "edit web part". I want add a drop down list ...
2
votes
3answers
3k views

Why web parts are loading sequentially?

In our home page we have multiple web parts that get the data from different webservices or from a recursive search in some lists in the site collection. We detected that all this calls were too ...
1
vote
1answer
2k views

“Web part references an untrusted XSL file” error

We're getting this error on a SharePoint 2010 web site when inserting a content query web part (CQWP) that uses a custom XSL file: The web part references an untrusted XSL file. Only XSL files ...
2
votes
1answer
2k views

SP 2010 - Search Core Results Default XSL Params

I was wondering, where I can find a list of the default xsl params available with the search core result webpart? When we use the default xsl stylesheet of the webpart, default params are defined at ...
2
votes
1answer
2k views

Send e-mail with SMTP (Office 365)

I need to show a popup-window with a basic e-mail layout and send the e-mail after pressing the send button. The popup, I've created and also the webpart within. But when I want to send the e-mail, it ...
7
votes
3answers
5k views

WebPart where to store a connection string

I have a webpart that connects to an external DB. I need somewhere to store the connection string. It is possible for this data source to change but would always be the same for the site collection ...
0
votes
2answers
1k views

SP 2010 - Search Core Results Webpart Ajax Options not working?

I'm trying to enable ajax on search core results webpart so that the pagination can be realized in an asynchronous manner. But this is not working. Is this normal? Do you succeed to configure search ...
7
votes
1answer
1k views

Where to load data in the lifecycle of custom webpart

I have a webpart where I access a sharepoint list and render contents of that list. At the moment I'm fetching the data in CreateChildControls(). When a button is clicked the data will be fetched ...
2
votes
1answer
709 views

SharePoint Designer Edit NewForm Link

I created a Data View Web Part based on an existing list in SharePoint Designer 2007, I included the SharePoint List Toolbar so users can create new items. I want to use a custom List Form, in the ...
0
votes
2answers
620 views

Data View Web Part (DVWP) for different groups

Here is my scenario: I have three groups, top-level Site Owners and sub-level groups Site Visitors and Site Testers. I have a single master list of resources with a variety of items stored in it. ...
2
votes
1answer
625 views

list most recently added user profiles?

In a web part (either out of the box or custom), I would like to list the user profiles most recently imported from Active Directory. This would be roughly equivalent to the most recent hires. Is this ...
2
votes
1answer
1k views

want to display image url in contacts list

We are working on an iPad application with SharePoint 2010 as CMS. On my SharePoint site we have a contacts list which the middleware is fetching using Lists.asmx and passing it to iPad. Now what ...
2
votes
2answers
2k views

Paste a screen shot in a richtext box

I am creating a custom webpart by using SharePoint object model (using visual studio), which has a rich text box control on it and I'm trying to paste a screen shot of the screen. It seems that the ...
1
vote
2answers
4k views

Dynamically add controls to webpart without Postback?

Is it possible to dynamically add controls to a webpart without having a postback for example with AJAX/Java Script/jQuery/Partial Postback within SharePoint? I'm searching for some kind of ...
1
vote
2answers
5k views

How to loopthrough all webparts inside a page layout

I have a requirement where I have to loop through all the web parts in my page layout whether they are in WebPartZone or not and render only the webpart instead of rendering webpart zone. I am able ...
3
votes
1answer
3k views

How can I override default css in SharePoinrt 2010 web parts

I would like all my custom webpart and default webparts to look the same. I know css classes like: ms-vh and ms-vb are used for the fonts, anchors and cell backgrounds. What would be the best way to ...
0
votes
2answers
1k views

Filter form for a list

I have a Sharepoint 2007 site and want to create a list that users can filter dynamically using a form or something similar. The use case is as follows: A user is shown a list with any number of ...
0
votes
1answer
1k views

Logging in custom Webparts and Application pages

I'm working on a SharePoint 2010 project which consists of a few application pages and some webparts. Whenever some error occurs in any of the custom pages/webparts I get the sharepoint error page ...
1
vote
1answer
176 views

List View in Sharepoint WebPart Page

I have created a webpart page..now i want to add a list view(CustomerListView) to the page... so i went ahead and edited the page and added the particular list(customerList)..but the dropdown box in ...
1
vote
1answer
289 views

Opening videos in browser with XsltListViewWebPart

I created a Document Center site which has its own Content Query Web Parts. When I upload a video file to this document center, the Content Query Web Parts are playing the videos in browser with modal ...
2
votes
1answer
649 views

Retrieve only the fields shown in userdisp.aspx from User Information List

I have built a Web Part in Visual Studio 2008 to show the current user's information (this is for WSS 3.0). I have no problem iterating through all the fields in the SPListItem, but I want to filter ...
2
votes
4answers
4k views

Is it possible to add webpart zone in sitepages?

I had a SharePoint site where I created a page (not a webpart page). Can I add webpart zone on this page?
1
vote
1answer
560 views

Webpart not taking up entire space

I have a custom sharepoint site where the Main area consists of two table cells. The left contains the navigation and the right contains things such as Calendar webparts. The problem is that the ...
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 ...
1
vote
1answer
4k views

Announcements Webpart Customization

Can I change the default look of announcements to view them using prev and next buttons. Can this be achieved out of box, or do I need to create a custom webpart. Also how can I set the expiration ...
1
vote
4answers
7k views

ContentEditor WebPart Edit Permissions

I have a publishing site. A user is in the visitors group. On a certain page I have given the user Full control. They can edit the body of the page but cannot edit the content of a ContentEditor ...
1
vote
1answer
73 views

Web part to list all pages unless they are hidden (site settings -> navigation)?

I have a web part that displays all pages in a repeater from the current site. If I go to site settings -> navigation and hide one of the pages then I don't want this page to be displayed in the web ...
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 ...
0
votes
1answer
130 views

Get error when inserting web part to page

We're implementing a custom web part (based on this article) but it throws this error when trying to insert it into the page: A Web Part or Web Form Control on this Page cannot be displayed or ...
1
vote
1answer
529 views

Visual Web Part - applying a custom sort order on a list of items in Edit Mode

I'm exploring how to build a Visual Web Part, that in edit mode, allows me to apply a custom sort order on a list of items. For simplicity, assume that when I load the web part, I can populate a ...
1
vote
0answers
650 views

Creating Custom List Definitions that Use InfoPath Forms - Deploy everything using Visual Studio 2010

I'm trying to create a list instance from a list definition, all from a VS2010 solution and want to have custom InfoPath forms for the list instance. This article keeps popping around in my searches: ...
1
vote
0answers
913 views

How to set custom Web Part values through powershell?

I am using a powershell script to initialize several values of a custom webpart and then insert that webpart onto a page. I have been partially successful using the method below: ...