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)

0
votes
2answers
1k views

How to get custom action to a SharePoint list actions menu for a specific list or content type?

I add custom action to a sharepoint list actios menu for all list . I want get custom actions that define for a special list in VS. How to get custom action ?
0
votes
2answers
252 views

Does webpart property validation code execute every page load

I have a custom webpart with custom webpart property. I have created a complex validation in the property. My question is, does this validation execute on every page load or happens only when ...
0
votes
2answers
439 views

Insert web part with H2 title instead of H3

We're inserting web parts into a publishing page and noticing that SharePoint wraps their title in H3 tags by default. Is there a way to control this? We need it to insert the title as H2, at least in ...
0
votes
1answer
675 views

Customize a web part's Miscellaneous tab

I've got a Data Form Web Part in SharePoint 2010 Designer that I'd like to customize so users can filter it on one of the columns. In other words, they'd be able to drop the web part in, then choose ...
0
votes
2answers
1k views

Site Aggregator web part in SP2010 does not show new tab

I am unable to find "new tab" after adding Site Aggregator web part. Does anyone know how to do it?
0
votes
4answers
326 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. ...
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
4answers
749 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 ...
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 ...
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 ...
0
votes
1answer
30 views

Is it possible to have a configurable parameter in a SharePoint 2013 (on-premises) Farm solution?

I am developing a SharePoint 2013 custom WebPart using Visual Studio 2012 where on Page_Load event, I am calling a method RunProc() which executes a SQL Stored Procedure in some other server. When I ...
0
votes
2answers
42 views

hide the “modified” “modified by” from web-parts

Is there a way to hide the "modified" and "modified from" from listing-webparts? I already created a new view and set it as the standard/default view. In this view I didn't check the boxes so it ...
0
votes
4answers
211 views

Sharepoint Document Library within a Web Form?

As part of a InfoPath web-enabled form, we want to include the ability for form fillers to upload files and documents to a location outside the form (meaning no embedded attachments). We figured a ...
0
votes
2answers
594 views

Pagination in custom web part displaying library

I have a document library. I am displaying this library using my own CSS in a custom web part. My question is how do I apply pagination? Normally in ASP.Net we simply use SQL query such as SELECT * ...
0
votes
2answers
389 views

How to enable new webpart options in webpart section on a SharePoint 2013 page?

I want to add Visio web part which is not available in my webpart option on my webpage. How to enable new webpart options in webpart section on a SharePoint 2013 page?
0
votes
3answers
1k views

WebPart getting started!

I'm new on SharePoint development (just 3 days) and next monday I start a project. I try to understand its structure and its coding bases and object model. I just created a simple webpart to figure ...
0
votes
2answers
436 views

Yammer WebPart for SharePoint 2007

Does anyone have any idea where I'd be able to get the SharePoint 2007 Yammer Web Part from? I appereciate that it's been retired but it's something that I'd like to make use off prior to my planned ...
0
votes
1answer
368 views

Display multiple images with links as a web part

I am running Sharepoint 2010 and i want to add a web part on the homepage with small thumbnail images with links to external websites. I want the images to display in a grid 4x4
0
votes
1answer
200 views

SharePoint Designer - wrapping webparts with html

Is it possible in SharePoint Designer 2013 to find the web part templates and wrap identifier div:s around them so I know what they are? For example if I have a library web part and want to make them ...
0
votes
2answers
46 views

Site Pages Library create custom page

I am wondering if there is a way to set up a site pages webpart that creates a templated page instead of the blank one that is currently generated?
0
votes
1answer
899 views

Programatically adding webparts to a page in sandbox

I've successfully implemented code to add web parts to web part zones in code using WebPartManager's in other projects. Now that I'm working in a sandbox solution, VS can't seem to recognise ...
0
votes
2answers
556 views

Users can't see css on my visual webpart

I'm trying to add some css on my webpart for the first time in SP2010. But for some reason the css only works when you visit the site on the sharepoint server. I belive it's the href path because it ...
0
votes
3answers
2k views

How can I access Controls in VisualWebPart1.cs from UserControl.ascx

I make a Webpart and want to use the controls from the VisualWebpart1UserControl.ascx in the VisualWebpart1.cs. Is this possible? I wrote following code in the VisualWebpart1.cs: ...
0
votes
2answers
138 views

List created on solution activated

I have developed a web part which relies on a list to work so I've created a feature which creates the list with all the necessary columns etc. When i delpoy to local everything works as it should, ...
0
votes
1answer
2k views

Where to Place XML File to be Read by Web Part?

In another question, I finally found a way to deploy the XML file to be read via a Feature, to the _layouts folder: Feature Elements File Should I be deploying it there at all? I wasn't able to ...
0
votes
3answers
374 views

Site Collections <target user> is a member of

There is already a webpart for this but it shows subsites etc, which is not the requirement. What I need is a webpart that will list the Site collections a target user is a member of, and it must be ...
0
votes
4answers
2k views

Accordiion webpart in sharepoint 2010

i have a zone in a webpart page which has around 4 webparts in it. I want to create a accordion wp which when add to the webpart page, show the 4 webparts inside the accordion tabs. EDIT The number ...
0
votes
4answers
447 views

How do I make the webpart show up on the child site?

I have deployed a solution to my farm and activated the feature. I then navigate to: sharepoint/_catalogs/wp/Forms/AllItems.aspx I can see the webpart but I can't see it in: ...
0
votes
3answers
1k views

Show Web part only for Logged in User

Is there any way that i can show a web part only for current logged in user .I want to achieve this on an out of the box content editor web part .Please suggest me
0
votes
1answer
2k views

How do I configure styles and layout of a Summary Link Web Part using code?

I have successfully added a Summary Link Web Part as a feature and want to configure the styles and layout of it, including: The default style for new links The group header style The number of ...
0
votes
2answers
711 views

referencing jquery in a sandboxed solution

I have a sandboxed sharepoint project, in which I have created a module, put jQuery there and referenced it from my webpart's ascx page like this: <head> <script ...
0
votes
1answer
365 views

SharePoint Root Site name show

I have a SharePoint site collection. The root Web of the site collection has the URL http://intranet.com. I plan to create a user solution that will contain a Web Part. The Web Part will display the ...
0
votes
1answer
3k views

How do I update a lookup column from a dropdownlist?

I'm creating a custom web part in asp.net for SharePoint 2010 programmatically. When a user presses an Add button, the selected item from the dropdownlist is supposed to then be added to the Groups ...
0
votes
2answers
565 views

How to Display a treeview Control in a webpart Or Alternatives

Hi I developed a TreeView that listing groups and users in them, but for some reason I cant find the best way even googled it, here's the Code protected override void CreateChildControls() { ...
0
votes
2answers
606 views

Customising the edit web part dialog

Is it possible to customise the edit dialogue window that is opened when editing a web part? Customised with regards to appearance, what fields are exposed etc.
0
votes
3answers
474 views

Access Denied for SPUserCollection.remove()

Works for administrator but not working for a normal user. I even tried it with "SPSecurity.RunWithElevatedPrivileges(delegate() {});" after breaking RoleInheritance, and even tried ...
0
votes
2answers
385 views

Modify an existing item based on ID

The following code is what is I use to insert new list items: using (SPSite oSPsite = SPContext.Current.Site) ' using (SPWeb oSPWeb = oSPsite.OpenWeb()) ' SPList list = ...
0
votes
2answers
869 views

Page viewer webpart, applying style sheets?

Can i apply css style sheet to a page viewer webpart ?
0
votes
1answer
1k views

How Do I Get the MySite Images and Full Name of the MySite owner in MOSS 2007 in C#

I am building a simple web part that needs the image that is used from the MySite and the First and Last name of the site owner. I know how to get the current user, I need the name. I am also having ...
0
votes
3answers
426 views

Creating a CSS web part? (hiding the right column on certain pages)

We have a site that is three columns wide. On just a handful of pages (maybe 10 out of 300) we'd like for the right column to be hidden, and the main content area to stretch over that. It's literally ...
0
votes
2answers
91 views

MSDN example scenario

I am working with the MSDN example scenario creating creating a custom web part. Can anybody tell me why is it showing the square bottom div below (see in the image). It says "Bottom" and it ...
0
votes
3answers
2k views

SP 2010 The maximum number of Web Parts for all zones on this page has been exceeded

I am developing SharePoint web parts and as soon as I click on the left navigation to add a web part to the page I get the below error. I am using SP 2010 VS 2010 Server Error in '/' Application. ...
0
votes
1answer
399 views

Nesting webparts programatically

I have a user requirement to add a webpart inside another; I am creating a tabbed container webpart, inside which the user wishes to add other webparts. How can this be achieved?
0
votes
1answer
2k views

Localizing ASP markup in webpart issue

In my web part I have an label, which I want to be localized: <asp:Label ID="AppJSTNameLabel" runat="server" Text="<%$Resources:AppListWebPart,NoSelection%>" /> I have mapped Resources ...
0
votes
1answer
275 views

Sharepoint form prepends WPQ2 to form names

I have a custom form added as a webpart that sends to another site. Unfortunately the name attributes of each of my fields is getting prepended with WPQ2 automatically. for example: <input ...
0
votes
3answers
682 views

Getting SharePoint absolute site url

I need to get the current absolute url of my site from inside code-behind. I tried SPContext.Current.Site.Url and get this error Value does not fall within the expected range. The goal is to get ...
0
votes
4answers
1k 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 ...
0
votes
3answers
1k views

SharePoint 2010: Problems with a connection provider web part which uses an UpdatePanel

I might be going about this in totally the wrong way but this is what I'm doing: I have 2 custom web parts: a company calendar and an appointment list. Both are visual webparts and both contain an ...
0
votes
3answers
2k views

Develop a custom editable Visual Web Part (WebPart) for SharePoint 2010

I want to develop a webpart that allows editors to amend its content using the built-in rich text editor, and then display that content in a nicely formatted way. The built-in content editor webpart ...
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.