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
1answer
231 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
174 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
73 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
183 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 ...
1
vote
1answer
390 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
1k 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
104 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
176 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
101 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
336 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
499 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
737 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 ...
5
votes
5answers
11k 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
1k 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
930 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
136 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
228 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
3k 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
160 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
351 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
1k 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
525 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
1k 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
806 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
728 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 ...
-1
votes
1answer
227 views

Add a class to a sharepoint web part project

I do apoligize in advance for that's a probably silly question but... I'm developing a custom Sharepoint Webpart and, for the sake os SOLID principle, I need to embed certain functionalities in ...
1
vote
1answer
220 views

How can I pass theme and locale to a web part in SharePoint 2010?

I have a Silverlight 4 web application that needs to be added to an already-existing SharePoint application. SharePoint and the silverlight web app could be on the same server or different servers. ...
0
votes
4answers
952 views

Web part settings losing their values every day

I have a web part custome setting, defined as below. It works fine but it seem to lose its value once a day!? Is this because the app pool is getting recycled or some such? Is there anyway to prevent ...
1
vote
2answers
2k views

Which web part will display the current user?

Do you know what web part I can use to display the picture of the current user?
0
votes
2answers
447 views

Using Web Part when adding document to a library

When a user uploads a document to a SharePoint library, I need to present them with a few dropdowns and text fields where they can provide some extra info. The dropdowns are going to be populated from ...
3
votes
4answers
6k views

When does custom properties of a web part get saved?

I have a web part that contains a number of custom properties. Only one of those customer properties shall not be set by the user. This property is an int, that represent a unique identifier. I want ...
1
vote
2answers
239 views

“Some of the properties for this Web Part cannot be set or displayed properly”

Im getting this error when trying to add a custome property to a webpart, what have I done wrong? [WebBrowsable(true), Personalizable(true), WebDisplayName("Site Root"), ...
0
votes
3answers
916 views

Linkbutton OnClick event incorrectly firing on page load

My click events are firing on linkbuttons on page load, before the link has been clicked, any ideas? (This is in a Visual web-part hosted in SP2010) This is my code: <asp:LinkButton ...
1
vote
3answers
3k views

Linkbutton onclick not working in a Visual Webpart

Im having issues with the onClick event on LinkButtons (possibly all controls) not working, in a Visual Webpart I am writing for SP2010. Simple example of what i am doing: public partial class ...
0
votes
1answer
555 views

Which outofbox webpart shld be used to show an image and redirect the image ?

I need to use any of the out of the box webpart , my requirement is , the webpart consist of an image and it shld redirect to a page .
2
votes
2answers
686 views

SSRS ReportViewerWebPart Height Issue

I am working with a customized page that has an embedded ReportViewerWebPart inside of a content tag. In this case, it's inside of "PlaceHolderMain". It looks like this: <asp:Content ...
0
votes
4answers
724 views

Redirection using Content editor Webpart

Whenever i try to open a site , i want page to redirect to some other page . So , i have added a javascript to redirect using the content editor on my page . Now i want to edit the code added to ...
2
votes
2answers
2k views

When to use application pages (aspx) versus web parts?

I'm struggling with this question at the moment... Basically I'm pulling a set of data out of a DB table related to our LOB application, listing it, and then want to click through from this list to ...
0
votes
3answers
600 views

Filter webpart on the Search Page

Basically, I am Sharepoint administrator and my bad time have to create/introduce a Filter webpart on the search page Expectations are I have a custom List with 10+ columns (like CustomerID, ...
0
votes
1answer
582 views

Office Web Components 11 in SP2010

Can somebody confirm me is it possible to use owc 11 in SharePoint 2010?! I use owc chart control, and in my other project(asp.net web app) I can use owc without problems. In SP 2010 I can build and ...
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? ...
0
votes
2answers
356 views

Can you run a 32bit compiled webpart in 64bit SharePoint?

I have a webpart which needs to use a native 32bit DLL for data access (the dll is Advantage.Data.Provider, for the Advantage Database Server DBMS.) As such I'm pretty sure I need to compile it as ...
5
votes
2answers
423 views

Location of web parts in use

After running preupgrade check, I found a few instances of some web parts I'd like to further investigate. These are 3rd party web parts that I'd like to know where they are actually being used. For ...
0
votes
1answer
110 views

Multiple visual WebPart

i have created a sharepoint 2010 project, under this project i want to add multiple visual webparts but i want to deploy just one not all. it'is possible ? and how thx