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
0answers
639 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 ...
4
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
4k 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
7k 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
506 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
906 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
288 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
4k 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
506 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
195 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
6k 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
6k 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
2k 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
1k 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
4k 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
946 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
637 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
555 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
575 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
924 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
1k 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
3k 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
3k 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 ...
2
votes
1answer
2k 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
1answer
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
695 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
168 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
256 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
508 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
3k 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
383 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 ...
2
votes
3answers
5k 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
4k 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
63 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
114 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
457 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
584 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: ...
0
votes
0answers
655 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: ...
0
votes
1answer
1k views

How to add an instance of a custom webpart to a web page using PowerShell?

I found this article which does a very good job explaining how to add built in web parts (like the content editor webpart). Unfortunately when I tried to add my own I couldn't get it to work. I have ...
2
votes
2answers
1k views

Displaying Documents With ListView Across Site Collections

Is there a way to use the SharePoint ListVeiw web part to display documents contain in a Document Center site collection? We are not seeing a way to use this web part and point it to a Document ...
1
vote
3answers
560 views

Is ist possible to share viewstate properties between webparts?

I have a class "Wepart A" and a class "Webpart B" which have some similiarities. So I introduced a BaseWebpart from which A and B inherit. I want to share 2 properties (SortColumn and SortDirection) ...
1
vote
2answers
1k views

Table of contents web part remove max 50 limit - without editing the web.config file

I know that to remove the max 50 limit on a TOC web part you can edit the web.config file by adding DynamicChildLimit="0", but I unfortunately do not have access to the server itself to be able to do ...
0
votes
1answer
559 views

Alert Message when Web Part/Zone Removed from Page Layout

I removed web part zone from page layout and deployed it using FEATURE. I see the web parts and zone removed from all existing pages using that page layout. However, I see following warning first time ...
1
vote
2answers
250 views

Reference of jquery increase with edit of CEWP

I am trying to use jquery in CEWP. In my html script, I am providing jquery reference which is available in SiteAssets library. I am using jquery library for some fancy slider. When I save html ...
2
votes
1answer
2k views

Moving web part out of SharePoint Designer 2010 to Visual Studio 2010?

I've developed a data form web part in SharePoint Designer 2010. The web part present a filtered view of a list along with edit and insert functions. I want to move the code out to Visual Studio into ...