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)

7
votes
4answers
2k 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
76 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 ...
19
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
369 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
80 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
3k 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
403 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
152 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
1k 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
3k 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 ...
2
votes
1answer
349 views

Setting the value of a custom web part property using object model

Let's say I have a reference to a web part that I got by using a SPLimitiedWebPartManager. How can I set the custom properties of that web part? For example, if it is a stock ticker web part, how do I ...
2
votes
2answers
220 views

Sharepoint Web Part restrict to zone

Is there any way to restrict a web part to a certain zone? I know I can restrict it by using the AllowZoneChange flag, but is it possible to make sure the web part can only be added to certain zones? ...
0
votes
1answer
159 views

SharePoint Web Part Gallery details of each web part

When using SPWeb.GetCatalog(SPListTemplateType.WebPartCatalog), it returns an SPList which of course contains a SPListItemCollection of the web parts in the web part gallery. When looping through the ...
0
votes
1answer
333 views

caml query help

I'm building a webpart that queries an sp list. my list contains two fields (title, tip). title = is a single text line and tip = a yes/no check box currently in my code, i am calling all items in ...
2
votes
3answers
1k views

Where is Organization Browser Web Part?

I’ve been trying to add an “Organization Browser” web part on our main portal site (http://whatever.sitehere.com) but for some reason, the web part isn’t there. It can’t be found under Social ...
1
vote
1answer
252 views

Is there a way to override default generated properties in a custom web part?

I know how to make custom properties for web parts in SharePoint, but is there a way to override the ones that are already generated? For example I have a Page Viewer embedded within my custom web ...
1
vote
1answer
179 views

401 Error when Deploying Usercontrol Webpart

I have created usercontrol (.ascx) as a webpart. When I deployed it, I got a prompt for login and 401 error. The error occurs when I call Me.CreateChildControls(). Help Please. I created a class ...
0
votes
0answers
74 views

Site Information as parameters into a Silverlight webpart

We are designing a system with one site per customer. We would like to have a silverlight webpart that shows customer information from a line of business application. Is it possible for a ...
0
votes
1answer
188 views

Custom Web part based on search object model to query accross site collections

I'm looking for examples how to build a web part (code) that queries all doc libs in a web application (Done by a created search scope, a scope exists with all the docs from all doc libs) and displays ...
2
votes
1answer
454 views

Table of Contents web part displays pages even when “Show Pages” is unchecked

I've added a Table of Contents web part to a site which has three sub-sites and a bunch of pages. I want this web part to display only the sites, not the pages. In the ToC properties I've unchecked ...
2
votes
3answers
2k views

How can I tell what type a web part is?

I'm trying to analyse how an existing MOSS 2007 publishing site is composed but I don't see any obvious way of identifying the type of the various web parts already in use within pages. Is there any ...
0
votes
2answers
106 views

How to write a SharePoint WebPart with multiple Controls

I have a stock chart and some other controls in my SharePoint WebPart... I am unable to call all the controls in the WebPart, only one control displayed in the WebPart or the ASP server controls ...
1
vote
1answer
182 views

Slider control in sharepoint 2007

i need to create a slider control which will be a connectable webpart . How i go ahead and implement this in SHarepoint 2007. Please provide any links . .
1
vote
1answer
91 views

SharePoint and Silverlight web part versions

We have a customer with several SharePoint installations, both 2007 and 2010. We are looking at developing Silverlight web parts. Is there a depenancy that you must use Silverlight 3 for SP 2007 and ...
0
votes
3answers
104 views

Putting a SPPersistedObject on a user

I would like to persist some information entered via my web part so the next time the same user uses it, the settings will be pre-populated. In the Windows world, I would just slap the data is ...
1
vote
2answers
357 views

Using C# 3 (.NET 3.5) for ASCX and ASPX files in SharePoint 2010

In an OOTB SharePoint 2010 Server installation, if you use C# 3 in your code-in-front, it doesn't compile, since the C# 2 compiler is used to compile the markup. (At least for me - SharePoint 2010 ...
1
vote
2answers
686 views

Drag And Drop SharePoint WebParts in Mozilla FireFox

i am having a problem with drag and drop of Share-point web-parts in browsers other than I.E. the drag and drop of Share-point web-parts in internet explorer works fine . but in any other browser it ...
1
vote
2answers
818 views

WebPart property with a HyperLink editor?

I am currently developing a SharePoint 2010 WebPart that has a custom property which has to capture the Url of an external website. In an attempt to make the WebPart more complete I would like the ...
8
votes
5answers
16k views

How to programmatically add a webpart to a page?

I have created a webpart, now I need to add that webpart programmatically into the EditForm.aspx page. Can anyone help me on this.
0
votes
1answer
128 views

How can I call controls on a 'multiple control webpart' dynamically by using JavaScript

Could anyone please tell me how to call controls on a 'multiple control webpart' dynamically by using JavaScript in sharepoint
0
votes
1answer
2k views

fix the position of a webpart

hey all ... i have a query i.e. How can i fix the position of the webpart on a page? in user personalization scope fixed position means fixed zone & fixed index (top / buttom). & user can ...
0
votes
1answer
957 views

Customize People Search Results

i want to edit my people search results but i can't do it. i want to show phone numbers , email or id of the users. how can i do that?
1
vote
1answer
137 views

Is there a way to programmatically access the parent zone of a custom web part?

I'm trying to create a web part that a user can add to a page and it will display a website in the entire viewing area. My web part wraps a page viewer web part, and it seems that I need to be able to ...
0
votes
1answer
230 views

Web part: Security trimmed results on Recently updated content for currently logged in user

I'm looking into a solution for a querry web part(?) The web part should display the 10 last updated documents (or less), in the last 2 weeks for all the document libraries in a specific web ...
0
votes
3answers
4k views

How do I run some JavaScript in a web part?

I found some JavaScript code on the web that I want to add to my custom web part so that I can modify a PageViewerWebPart's height to 100%. I just need to know what steps to take to call it. I added ...
0
votes
1answer
1k views

set a person / user as target audience for a custom web part in sharepoint 2010

is there any way by which i can add a specific user or group as target audience of my custom web part programatically ?? i am using SPWeb web = SPContext.Current.Web; ...
0
votes
1answer
163 views

anonymous user is not able to see web part settings in sharepoint foundation 2010

I created one anonymous site in sharepoint 2010 and added one web part. Anonymous user is able to see web part But anonymous user is not able to get web part setting. thanx.
1
vote
1answer
2k views

Connectable web parts - consuming from OOTB list view web part

I'm trying to create a custom web part that consumes from an OOTB list view web part's "Send Row of Data To" producer. The list has a lookup field to another list, and I need that value (the ...
2
votes
1answer
372 views

MY SITE Users Information List

I am new to SharePoint and I am making a student portal site and i put who is who section. when student want to search a name on the student portal , informations will be list on the portal. So i want ...
3
votes
2answers
1k views

What are the disadvantages of Visual Web Parts?

I am really wondering what the disadvantages are when using a Visual Web Part. All the books and articles on the internet only talk about the pros. But I am sure the are some disadvantages, beside the ...
0
votes
3answers
2k views

not able to see web part on anonymous site in SharePoint 2010

i am not able to see custom web part on my anonymous site in sharepoint 2010. when i add out of box web part it is visible but custom web part is not visible. please help me to resolve this.
1
vote
3answers
530 views

Where is my web part? [MOSS]

A newly developed web part has been deployed to a half dozen site collections. We use one site collection for demo purposes. The new web part is available at all levels of that site collection, and ...
1
vote
3answers
2k views

Problem hiding scroll bars in a custom web part with embedded Page Viewer web part

I am designing a custom web part that basically wraps the existing PageViewerWebPart. I am doing this because I want to have some properties hard-coded and I want the URL to be formed dynamically when ...
0
votes
1answer
1k views

XsltListViewWebPart - run some javascript after async refresh

I've got an xslstlistviewwebpart, and set in the AJAX options to refresh the webpart every 15 sec. Is there a way to hook up some javascript code after the webpart is refreshed? Larsi
0
votes
2answers
2k views

CEWP on Allitems.aspx in SharePoint 2010?

I have a SharePoint 2010 Discussion board and would like to add a Content Editor Webpart on Allitems.aspx page of it. I understood that we can not directly add a CEWP into the page however should use ...
0
votes
2answers
774 views

ListViewWebPart and new document link

I added a ListViewWebPart that is setup show the Shared Document list and the first view. My problem is that I do not get the New Dokument link in the web part. How do I get the web part to show the ...