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 proper library inclusion.

learn more… | top users | synonyms (3)

2
votes
3answers
1k views

SharePoint 2010: Using values specified through a modal dialog in web part code behind

In my custom SharePoint 2010 web part, I am allowing the user to specify his information in a model dialog window. I then need to use this information in my web part code behind for further ...
2
votes
3answers
7k views

How to get current web part GUID

Is there a way to find the GUID from within a web part programmatically? For example, if there were two of the same web part added to the same page, is it possible to find the GUID of each of them ...
0
votes
2answers
159 views

SP2010 Profile properties

Can the "EditProperties" page be edited? The URL points to a /layouts so I am assuming that it must be done outside Sharepoint Designer (I could not find it in Designer even as System account). I ...
3
votes
8answers
6k views

Web Part Error: Access Denied

I'm currently playing around with SharePoint 2010 but have come across an issue when using the standard Document Library and Announcement web parts. If I change the permissions to a list or library ...
1
vote
2answers
200 views

Documentation for using out of box web parts (2010)

Where can I find documentation on setting up/configuring some of the more obscure out of the box web parts (e.g. Sites in Category)?
2
votes
2answers
1k views

Deploying CKEditor into SharePoint

Is it possible to integrate CKEditor with SharePoint (WSS 3.0)? Could it be possible with Visual Studio and deploying as a Web Part??
2
votes
1answer
2k views

Developing Visual Web Part with external list in ListView

Using VS 2010 i've created BCS model for external MS SQL source, deployed it with success, then created external list - it works perfect. Now my task is - create visual web part in VS2010 and place ...
1
vote
1answer
283 views

Accidentally removed the List View web part from the Reusable Content popup - How can I restore it?

I was working on a project to provide Up Button functionality for the list view web part, and ran across this functionality in the Reusable Content popup. I opened reflector and set to work to reverse ...
1
vote
2answers
1k views

Cannot set the Query Text Box width on a Search Box web part

Does anyone else have this problem and know of a work around? On a WebPart page, add a Search Box WebPart. Edit the properties of the WebPart and change the Query text box width (in pixels) option. ...
0
votes
3answers
2k views

Check whether user is administrator in a Sharepoint page using JavaScript or jQuery?

I am developing a webpart for SharePoint in Visual Studio 2005. I am making use of a user control in this project. Now, I have to obtain the currently logged in user using JavaScript and check whether ...
1
vote
3answers
235 views

List names on my Intranet homepage were changed to “Untitled[n]”

Suddenly, the name of various lists like Announcements, Suggestions etc. on my Homepage has changed to Untitled ‭[1]‬, Untitled ‭[2]‬ and so on... How could this happen? Please help!!
1
vote
2answers
1k views

External database connection in web part

So, I have a web part that needs to connect to a different database other than sharepoint. This is a custom web part that I'm writing in VS, not something built with SPD. How can I connect to the ...
1
vote
3answers
641 views

Sharepoint Designer Crashes When Adding a Custom Web Part [closed]

I'm trying to add a webpart to a "Dispform.aspx" of a list in Sharepoint Designer. I can add ootb webparts without any problem, but mine just won't work. By the way, I can add the web part normally ...
2
votes
2answers
559 views

When to use CreateChildControls() vs. embedding in the ASPX

I'm developing a webpart for SharePoint 2007 and have seen several posts that advise to do all the creation of controls in the code-behind. I'm transitioning from Java J2EE development so I don't have ...
0
votes
2answers
479 views

How do you resize the title of a webpart on a webpart page in SPF2010

Sharepoint Foundation 2010, I want to make the title of the webpart larger than the text inside the list so that it stands out. How can I do this? Thanks.
0
votes
1answer
166 views

Is there a way to -not- refresh the page when we click on a link in SharePoint Web part?

A few days ago I submitted this question to stackoverflow: http://stackoverflow.com/questions/3161708/sharepoints-new-folder-doesnt-ask-for-a-required-field I essentially have Web Part Connections ...
0
votes
3answers
1k views

Can I target .NET Framework 3.5 when creating a MOSS 2007 web part?

I'm creating a web part in Visual Studio 2008 that involves using the Open XML SDK 2.0. I'm getting an error saying I need to add a reference to the WindowsBase assembly. However, I can only add ...
1
vote
2answers
2k views

Custom New Web Part Page Template when creating page

I want to give the user the ability to create web part pages, from a template, where the the left column is a web part, lets call it LEFTNAVPART, and the header is another web part, let's call it ...
7
votes
6answers
26k views

Webpart to display list of subsites?

I would have thought SharePoint 2010 still had a built-in webpart to display a list of subsites as I could in previous versions. I'm having great trouble finding it, though. How does one display a ...
3
votes
3answers
5k views

Can't add web parts to a page as a user with Full Control

As a site collection admin, when I go into subsites and choose "Edit Page", and the "Insert" tab, I see a long list of categories for web parts in the left hand panel. However, when I log in as a ...
4
votes
1answer
2k views

Deploy a web part to a page during feature activation within a Sandbox Solution

I've been hitting my head against a wall on this one for the last couple of days. I have a pretty simple requirement but I cant see how it can be achieved within a Sandboxed solution. I'm depressed ...
0
votes
1answer
1k views

WebPart not registered as safe

I have a webpart that is part of a larger solution, deployed as a WSP using WSPBuilder. I can see the SafeControl entry in the web.config and can see that the assembly has deployed to the GAC. The ...
3
votes
3answers
5k views

Default web part in web part zone for page layout

How can I set a web part so it will be automatically appended to a web part zone when a specific page layout is selected? The solutions I have tried so far is: Using <ZoneTemplate> under ...
0
votes
3answers
1k views

Video and Audio button missing

I would like to add a video to my sharepoint site. When I click edit > Insert, the Video and Audio tab is missing. How do I get this to work?
2
votes
1answer
4k views

Web Part “Hidden” option is greyed out on team site wiki pages

For all the Web Parts on my SP 2010 team site wiki page, the "Hidden" option is greyed out (under Edit Web Part > Layout). How can I activate this option?
0
votes
2answers
4k views

How to show list data in vertical list

I want to show the contents of three specific columns from one specific list item. Like Meeting list item ID 5 contains Name MeetingDate Bitfield1 Bitfield2 John Doe ...
0
votes
1answer
453 views

Audience targeting only works when browsing from the SharePoint server, using internal address

I have a web part which I am trying to target to a specific audience (the 'Staff' audience.) I have the web part in the home page of a site that has anonymous access enabled. I have set the Target ...
0
votes
1answer
779 views

Dynamic WebPart connections

I'm prototyping the best way to dynamically connect web parts at runtime. Essentailly, the application will allow for several disparate application groups to create web parts that will be consumed ...
5
votes
4answers
1k views

Catch exception in web part, or let it bubble up?

I'm writing a web part for other sites to use in their SharePoint installation. In the logic of the web part I throw exceptions at certain failure points. I'm wondering whether it is a better ...
0
votes
2answers
3k views

How can resolve Error: “Could not load type 'Microsoft.SharePoint.WebControls.SPGridView” SharePoint 2010?

Following error comes when creating a WebPart In sharePoint 2010 Server. Web Part Error: Unhandled exception was thrown by the user code wrapper's Execute method in the partial trust app domain: ...
3
votes
3answers
1k views

problem deploying webpart on a farm

a customer has a problem deploying a webpart I developed for them on a farm. The webpart is packaged as a .WSP solution with WSPBuilder and it seems to work fine when deployed to a single server. ...
0
votes
2answers
689 views

Rendering of WebPartZone

How can I prevent a WebPartZone from wrapping with <table>? For web accessibility we don't want WebParts to be wrapped in tables.
2
votes
4answers
9k views

Organization Browser in SharePoint 2010 empty unless used on My Site

I have been trying to get the organization browser web part to work on a publishing site and I can't get the web part to display any users. When I look at the organization browser web part on the my ...
0
votes
3answers
2k views

Custom Webpart doesn't show up in Sharepoint 2010 after deploying from VS2010

Full disclosure: Sharepoint development noob. I currently have 3 custom web parts built in an SP solution in VS2010. I build and deploy my project out to our local Sharepoint dev box. However, after ...
1
vote
2answers
1k views

Filter WebPart where customer number = current document library name

I have a web part page in a document library (http://mysitecoll.com/subsite1/Cust001/cust001.aspx) I have added web part to display list from the top level. It works and displays all the items in a ...
0
votes
3answers
257 views

Why is the Page property in my web part null?

I am trying to include an Image control within my web part. In EnsureChildControls I have the following code: Image image = new Image(); image.ImageUrl = ...
0
votes
1answer
443 views

My Calendar Webpart is not displaying the local time

My Calendar webpart (OOB) is showing US time irrespective of the customer location, is that expected? if so, how it could be resolved ? Note: Our servers are in US however customers are in throughout ...
1
vote
3answers
2k views

Deploy a Data View Web Part to any SharePoint site

I followed this url to create webpart that reads list from the top site. How to use SharePoint Designer to display list data from subwebs It worked great. I can even export the custom web parts (wp ...
2
votes
1answer
6k views

Get the current UI language from a webpart

How can I get the selected language in the screenshot, from inside of a webpart? I'm using SharePoint 2010. My webpart is a "visual web part" created in VS2010. I'm trying things like ...
-2
votes
2answers
130 views

Full webpart Sharepoint 2007

How can i create a full webpart , that i can import in sharepoint 2007.
0
votes
1answer
972 views

How to deploy a web part that uses AjaxControlToolkit with WSPBuilder?

I'm trying to deploy a webpart that is an ASP.NET user control that uses AjaxControlToolkit via WSPBuilder, with not much success. There seems to be a lot of web.config edits that need to be done in ...
1
vote
4answers
172 views

What web parts do you recommend or consider essential?

Although we internally manage to get away with the Data View Web Part for most cases, what other web parts have you come across which you may consider essential for MOSS or WSS? Before you answer ...
0
votes
4answers
428 views

Formatting controls in web parts

If you have multiple controls in your webpart how do you format them 'nicely' so they don't all appear in one horizontal line? So you would have something like CompanyName: First Name: Last Name: ...
2
votes
2answers
901 views

Using WebClient Class inside a Visual Web Part

I am trying to use the WebClient Class inside a Visual Web Part (via a User Control code behind class). When I want to run the web part I always get: Asynchronous operations are not allowed in ...
0
votes
1answer
75 views

web part for list

I can go to Edit > Add Web Part > Lists and Libraries > Pick a list "My Customer List" and wala it works. The first column in the "My Customer List" is the Customer ID "Customer_00N" or so forth. ...
0
votes
1answer
759 views

Is SharePoint's ListViewXML syntax based on a standard?

Recently I had to change a ListView webpart and noticed the syntax that renders the HTML is not XSLT. Is this syntax documented somewhere? Example, <IfEqual> <Expr1> ...
0
votes
3answers
602 views

How can I create a reusable web part for many customers?

(Any suggestions or good link related to this would help) I have 120 customers in a list called "CustomerList". Each one of this customer has unique document library that matches their title. Goal ...
0
votes
2answers
324 views

Adding HTML content from a list into a Web Part

I have a page which is created from a Page Layout. On the right side I need to have a Web Part which displays promotions e.g. html content. This html content comes from a list. Whenever I change the ...
1
vote
1answer
344 views

How to deploy to path returned by GetClassResourcePath?

I'm using VS 2010 to create a SP 2010 web part. I want to include my images, css files and js files in the VS project, and have them be deployed to the correct location. My understanding is that I ...
2
votes
2answers
675 views

Best approach to adding a web part to an existing page in multiple environments

If you’ve got an existing page in each environment e.g. default.aspx and want to add a web part and promote to each environment what is the best approach? Create a WSP with a Feature Receiver and ...