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)

2
votes
2answers
781 views

Limit Content Editor Webpart

Is it possible to limit the content editor webpart, like you can with pagelayout rich text fields. For example I want to limit the use of inline styles, fonts, colors etc. Are there any alternatives ...
2
votes
1answer
215 views

Possible to create a document library for my web part on installation?

I have a web part that need to have its own document library. Is there any way for me to check to see if that document library exists and if not create it, when the WSP is installed?
6
votes
4answers
8k views

Is there a web part to display all subsites with description?

I am looking for a way (via web part?) to display all sub-sites of a site collection with output similar to output you see under "Sites & Workspaces" (under All Site Content)... I know there is a ...
4
votes
1answer
7k views

Custom webpart properties not holding their values!

I am dynamically adding items to a CheckBoxList that configures some settings in my web part. When I set the properties and click "OK" everything on my page works as expected and displays that data ...
2
votes
3answers
2k views

Hiding WebParts programatically does not work

I am using the following code to hide all WebParts in a page. string siteUrl = "http://site"; SPSite site = new SPSite(siteUrl); SPWeb web; web = site.RootWeb; web.AllowUnsafeUpdates = true; ...
2
votes
3answers
2k views

web parts vs user controls

I need to develop a SharePoint solution that has many layout pages, ten sub sites to be exact. Each department wants to have its own slight variation on the three layout pages proposed at the ...
1
vote
2answers
1k views

Can't get jQuery UI to work in my web part!

I have the following markup: <SharePoint:CssRegistration ID="cr_jqui" Name="/Layouts/MultiPart/css/smoothness/jquery-ui-1.8.12.custom.css" runat="server" After="corev4.css" /> ...
2
votes
1answer
790 views

Create Web part programatically VS 2010

we are to create several web parts after a site is provisioned with WSP. I can either create wp from scratch on feature action. Or save a set of WP in gallery and create an instance out of that when ...
3
votes
3answers
204 views

Developing a custom webpart to improve the page performance

I need a suggestion for a specific development requirement; it is just for a sub-site. The sub-site has a single list with 20 columns and 850+ items. Now, in the home page, I have to have there ...
2
votes
1answer
1k views

sharepoint webpart javascript - 'null' is null or not an object

I have an issue on one of my sharepoint enviriontments regarding some kind of javascript problem with the Content Editor Web Part which keeps returning me these errors when I try to user the RTF-text ...
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 ...
7
votes
1answer
1k views

Why is my CAML query working in CAML Builder but not in the application?

I have a CAML query that queries a calendar list and I want it to return all the items in the list with an EventDate of today or later, ordered in ascending order. The CAML query I'm using is this: ...
1
vote
1answer
263 views

Chart Web Part Average Data of a coumn

Let say I have a list with Title | Result A | Result B bob 1 1 bill 1 3 ben 1 5 I wish to graph the average for Result A and Result B only. Using the ...
1
vote
2answers
993 views

Issues after an Application Pool Recycle

My site is setup to use SharePoint 2010's automated Application Pool Recycling. I have 2 front end web servers. Sometimes (not everytime) the application pool recycles, and a custom webpart starts ...
5
votes
4answers
10k views

Custom web part deployment produces 'Cannot import this webpart' error

I have built an empty SharePoint project in Visual Studio 2010 with some custom web parts in it. When I've tested these on my local development machine they can be added to a page without any trouble. ...
2
votes
2answers
486 views

How to add safecontrol without deploy solution

i have one portal for my student and been developed by vendor. so i dont have the coding. my problem is when i want to import my webparts into the portal, I need to insert safecontrol into the ...
9
votes
4answers
1k views

Why does having `windows.onload` break page editing?

This is related to an earlier question that I posted: Can't edit page after adding custom web part! Basically, I have created a web part with some javascript. When I add this web part to a ...
1
vote
5answers
6k views

Can't edit page after adding custom web part!

When I click on the edit icon nothing happens. No errors, no post back nothing. I ended up turning on the Console in FireBug and it throws this error: SP.Ribbon.PageState.ImportedNativeData is ...
6
votes
1answer
891 views

Exception on connecting webparts

I have a couple of webparts on a page, XsltListViewWebPart and SPSlicerTextWebPart instances. I need to programmatically connect the filter (slicer) to the xslt webpart. When I do so, I need a ...
1
vote
2answers
564 views

Status indicator webpart fails on page edit

I have a status indicator webpart on two different Home.aspx pages in my site collection, both pointing to the same status list. The main site contains another site, and the sub-site is where the ...
1
vote
3answers
206 views

CbQ webpart takes longer time to load, SQL slowness issue

I have custom page and it has a CbQ webpart alone, it actually performs a query against a single list which has only 800 items with 15 columns but it takes 8secs to load. I suspect a slowness in SQL, ...
3
votes
3answers
18k views

“The type is not registered as safe” when trying to add a web part installed by a WSP

I keep getting this error when I try to add a web part that I added through a WSP: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type is not registered as ...
1
vote
1answer
2k views

Web part not available to add after Installing to the web farm

I am new to this type of development so I apologize in advance if this is a stupid question. But..... I installed a web part that was packaged in a WSP through the Management Console as follows: ...
1
vote
1answer
182 views

Webpart interaction

Although I've been doing a lot of sharepoint 2010 branding lately, programming webparts is something completely new for me. I need to put together three webparts. I want to create a Webpart1 ...
3
votes
2answers
725 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 ...
2
votes
2answers
3k views

Possible to access controls on parent page from SharePoint popup?

I have a web part from which I am popping up a aspx page that is used to upload a file. Code: <a href="javascript:SP.UI.ModalDialog.OpenPopUpPage('/_layouts/MyProject/UploadFile.aspx');"> ...
1
vote
3answers
150 views

How to develop a webpart that show report of a list

I'm final year student and I need to develop a webpart for SharePoint 2007. I'm still exploring and I search for a tutor and friends that can point me to right direction on how to do my project. I ...
1
vote
2answers
2k views

Can I load a dropdown list with a SharePoint list to set a Custom Web Part Property?

I found this post which claims to show you how to do it: http://blog.concurrency.com/sharepoint/create-a-custom-web-part-for-sharepoint-2010/comment-page-1/#comment-1851 But after carefully ...
1
vote
5answers
2k views

Is there any way to show video in a web part on WSS 3.0?

Is there any ready to use webpart that can be imported to a WSS 3.0 site, in order to view video embedded on website, with no extra coding or server changes?
0
votes
0answers
698 views

using list lookup Fields in SharePoint 2010 programmatically [duplicate]

Possible Duplicate: How to set ListItem Lookup Field value I have a SharePoint list with a lookup field and I want to add values to this list through the SharePoint Object Model. but I ...
0
votes
4answers
318 views

sharepoint web part rendering

I've been pulling my hair out long enough on this one.. would appreciate some help :) I've created a custom DataFormWebPart which I need to render certain contents to all users of a sharepoint list. ...
3
votes
2answers
111 views

Location aware Silverlight webpart

We are designing a system where we will have a site per customer. The site will be created based on a custom site template. This site will have a Silverlight webpart, that will get data from a ...
1
vote
2answers
6k views

How to add a pop up aspx page to your web part?

I'd like to have a pop up that contains an aspx page. It appears that adding an aspx page to a web part is not possible. When I went to add a new item to the project the closest I could find were ...
1
vote
3answers
309 views

Possible to have users configure a few values when adding a webpart to a page?

I have a web part that has to does something specific with a list. I would like to have users specify which list they want the web part to use when they add it to a page and not worry about it again. ...
7
votes
2answers
7k views

Adding ScriptLink for js file to my Visual Webpart causes error: “Cannot make a cache safe URL for…”

Full error: Cannot make a cache safe URL for "sprocketcomplete/layouts/sprocketcomplete/js/sprocketcomplete.js", file not found. Please verify that the file exists under the layouts ...
4
votes
2answers
2k views

SharePoint 2010 web membership through Active Directory group web-part to display user list

I'm building a SharePoint environment that will be composed of many departmental sub-sites. Each of these sub-sites will have membership defined through Active Directory groups. I need to display on ...
7
votes
4answers
1k views

Can I get the source for the out-of-the-box web parts in SharePoint 2010?

I'd like to take an existing web part and add some functionality. Can this be done? I figured out how to download the dwp for the webpart but this does not appear to have any source code in it. ...
2
votes
1answer
41 views

Possibly to create a library on webpart install?

I'd like to create a library that my webpart uses to store documents. I would prefer to have this library only be visible through my webpart and by admins. Is this possible? If so, how would I go ...
0
votes
1answer
73 views

Where to store cryptograhic key for external service

I have a SharePoint 2010 web part that communicates with an external service. The external service provider gave us a secret cryptographic key that we must use to sign our requests. Currently, the key ...
0
votes
1answer
82 views

Sharepoint Server Standard 2010 - Teamsite Assistance

We are creating a simple, clean, functional teamsite on our intranet using SharePoint Server Standard 2010, using shared documents library for various folders and subfolders. In a few of these ...
17
votes
5answers
1k views

Organizing WebParts in Visual Studio - Best Practices

My team is responsible for maintaining a SharePoint 2010 site that was developed by another group. This maintenance includes updates to existing web parts (approximately 20). Currently, all of these ...
0
votes
1answer
362 views

How do I create custom calendars beyond what is offered out of the box?

I have searched and searched for resouces on this for SharePoint 2010 and I am unable to find anything. I want a much more robost calender and I know c#, but I don't know where to begin. Please ...
1
vote
2answers
77 views

javascript in contentEditor webpart

How can we add javascript in CEWP 2010?
4
votes
2answers
3k views

How to use InputFormTextBox in a custom web part ?

I'm currently trying to integrate a rich text editor into my web part. I've found that I can integrate an InputFormTextBox in my aspx page : <SharePoint:InputFormTextBox ...
3
votes
1answer
2k views

Select the ListView Web Part Automatically on AllItems.aspx

In SharePoint 2010, if you have more than one web part on a web part page, the ribbon disappears because SharePoint doesn't know which web part to display the ribbon for (this is by design because if ...
0
votes
4answers
380 views

Javascript error on sharepoint page with search webpart and User Control containing UpdatePanel

I've been trying to find a cause for this error for some time to no avail... We have a SharePoint 2007 site heavily customized in terms of look and feel. In the master page a user control has been ...
0
votes
1answer
151 views

Connecting Web part to external Database

I'm trying to connect a web-part running in Sharepoint 2007 site to an external Sql Server 2005 database. I get a System.Secutity.SecurityException with "Request Failed" message when I attach debugger ...
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) ...
0
votes
1answer
987 views

Html Form Web Part - what is the corresponding class?

I need to add a HTML Form Web Part to a SharePoint 2010 page programmatically in a feature receiver, but I can't find the class to instantiate.
0
votes
1answer
2k views

Sharepoint 2010 publishing page personalization - Error “Add and Customize Pages permissions”

I'm trying to enable users to customize the home page of my publishing site. For testing purposes, i have changed the "Read" role to allow "Add/Remove Personal Web Parts" and "Update Personal Web ...