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
0answers
380 views

Sharepoint 2010 - item field updating not working on a document library

I have this code here from a webpart that creates a treeview from a document library. For each item in the list it will create two child nodes called "Up" and "Down". When you click up, it should ...
2
votes
1answer
236 views

Is It Possible to Add the SharePoint List View Related Ribbon to the Application Page?

Is it possible to add the list view related ribbon to the application page? I have a list view webpart in my application page. Now I don't have any ribbon like list view web part. Is it possible to ...
1
vote
1answer
649 views

Extending CoreResultsWebPart - Setting defaults

I'm in a process of extending CoreResultsWebPart - I'm trying to create something like "Who is Blogging" to show you most recent blogs from people. Following properties will be changed - so that when ...
0
votes
2answers
101 views

How to set the panel on the custom webpart without scrollbars

We have a panel in our custom webpart & its size is set as equal to the webparts size on the createchildcontrol method...however the panel is coming up with scrollbars.. how we can display the ...
1
vote
1answer
1k views

News web part for Sharepoint 2010

I am looking to build a News web part (Sandboxed) as we can see in below link. http://timesofindia.indiatimes.com/tech/techhome/5880659.cms Requirement is, The News web part should contain a ...
0
votes
0answers
723 views

List View Webpart with Thumbnail View

I have a Picture library and I use the default Thumbnails view. So I created a List View WebPart on the home page and the items are all messed up. Instead of showing in a nice and tidy grid, there are ...
0
votes
2answers
675 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 ...
1
vote
1answer
251 views

Extending Search Core Results with XSL

I'm working on a webpart that extends CoreResultsWebPart. I have create new solution and added new WebPart project into it. I got most of it working apart from XSL. I want to use this.XslLink ...
0
votes
1answer
1k views

Visual webpart - The type or namespace name 'List' could not be found (are you missing a using directive or an assembly reference?)

I'm trying to create Web Part properties. Below is my code : using System; using System.ComponentModel; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using ...
0
votes
3answers
256 views

Creating public properties in sandboxed webpart solutions

I'm trying to port a farm solution to a sandboxed one, and I can't figure out how to port this piece of code: [ToolboxItem(false)] public partial class vClockPartSB : ...
0
votes
3answers
1k views

What is the difference between CamlQuery and SPQuery

Maybe a simple question, when to use CamlQuery and when to use SPQuery ? I think that SPQuery is used inside a WebPart running on the SharePoint server, and that CamlQuery is part of the Client ...
0
votes
1answer
398 views

Saved Web Part lists data but errors on link through

Im having a problem with a saved web part which lists recent discussion board posts from a different subsite within the same site collection. The web part shows all of the data correctly but when I ...
0
votes
2answers
1k views

Label control Text is not HTML Encoded

I have a simple Webpart which has label control displaying some text, but I don't know why Label control's text is not rendered as html encoded. I have worked with ASP.NET site development and it ...
1
vote
2answers
2k views

Deploying web part from Visual Studio?

I exported a Core Search Results Web Part and created a new Visual Web Part in a Visual Studio project. I have added some code to the .cs page and the code for my exported webpart to the .webpart file ...
1
vote
0answers
780 views

Paging with ListViewByQuery in web part

I have a list web part to show any list on any site or site collection, it's working great except for the paging. when I click on the next page arrow, it stays on the same page. It seems that the ...
1
vote
1answer
3k views

Has anyone seen this error; $Resources:core,ImportErrorMessage;

In my local machine i deployed my web part and also i can use it but when i want to use this web part another sharepoint site importing web part shows this error: $Resources:core,ImportErrorMessage; ...
1
vote
1answer
560 views

Adding web part to person.aspx - WebPartId?

I'm kind of stuck adding a web part to the Person.aspx page....I have a custom web part which I have uploaded but I'm not sure how to add it. On the masterpage (in SharePoint Designer) I went to ...
1
vote
3answers
557 views

Why does my browser render apostrophe's as question marks, spaces as “nbsp” and other characters with HTML tags?

An example of my problem is at http://techfests.com/NWA/2012/Tracks/Cloud/default.aspx. Notice how the word "Microsoft's" is rendered as "Microsoft?s". I input this in the Text Editor on the web ...
0
votes
1answer
146 views

show multiple screens using visual web part sp 2010

i have few screens like data entry screen, data listing screens, data analysis screen, voting screen in short i have 5-7 screens. i m just wondering, what is best way to show them in single visual ...
1
vote
1answer
440 views

How to remove/change JavaScript code from sp.ribbon.js?

I use This link for created a ribbon on my web part. I run the solution and it is OK. but when i change the JavaScript code it is run the old code. I remove the JavaScript code in solution and add ...
1
vote
1answer
61 views

Web Part Resources e.g. Images and Scripts [duplicate]

What is the best practice for including resources such as Images / Stylesheets / Scripts in a custom visual web part (built with Visual Studio)?
0
votes
1answer
56 views

Membership webpart to display the list of user irrespective of the logged in user access

We have a Membership webpart to display the list of users are in the site owners group, it displays the users if and only if the logged in user is a member or owner of the site however we want it to ...
1
vote
2answers
3k views

How to add a button at Page tab ribbon when add webpart?

I have a webpart with custom setting. I add 2 property to webpart setting. I want add button to Page tab ribbon when webpart added to page and value set for the property. It is possible that add a ...
0
votes
1answer
2k views

CheckBox header to select all checkBoxes in SPGridView

I have a webpart with SpGridView. <SharePoint:SPGridView ID="grid" AllowSorting="true" AllowFiltering="true" CssClass="ms-listviewtable" runat="server" AutoGenerateColumns="false" ...
3
votes
1answer
2k views

Web Part zone index not working

I am installing a web part on a few different pages. I have set my zone index to 0, yet they still wind up below the other web parts on the page. Here is my code: TasksWebPart ...
1
vote
1answer
49 views

Storing IEnumerable<X> so that it can be used by multiple webparts on a page

Another is this possible question: I have 4 webparts that read in a csv file, process it and create a IEnumberable that is used for graphing. Right now the webparts each read in and process the ...
1
vote
1answer
388 views

Custom web part saves custom field results in project out of date error

We've created a webpart and user control that uses a sharepoint people picker to save AD accounts to a project custom field. To save, we've hooked into the ProjectSave event (click 'Save' on the ...
1
vote
1answer
288 views

Adding and referencing an additional assembly in sandboxed solution

I'm writing a feature to my sandboxed web part with an event receiver that would parse a html website and add the results to a sharepoint list. The thing is I'll need to use the HTML Agility Pack and ...
0
votes
1answer
3k views

Is it possible to have a Datasheet view as a Webpart?

I am looking for a solution to the above. If it is not possible... is there an alternative to the same?
0
votes
0answers
117 views

MOSS 2007: jquery can't access web methods from custom web parts

I have custom web parts on MOSS 2007 that uses jquery to call my custom web methods. I have been checking my MOSS 2007 Web Application on Firefox with Firebug and on the Console Tab it says 401 errors ...
2
votes
1answer
444 views

How to get current SPListItem from web part on edit form?

It seems like there should be a way to do this, but I haven't found anything. Do I need to use the url to try and extract this information or is there a better way?
2
votes
2answers
96 views

Global property for all webparts on a page

Not sure if this is even possible. Is there a way to setup a global property that can be used by all webparts on a page.
0
votes
0answers
376 views

Keep getting Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML

Keep getting this error "Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint ...
3
votes
4answers
10k views

Redirect a user after submitting an InfoPath form

I made a custom list in SharePoint and then created an InfoPath form based on that list. I created a new page in my SharePoint publishing site and added an InfoPath Form Web Part that looked at my ...
2
votes
0answers
932 views

How can I specify the ID of a XsltViewWebPart?

In a module, I'm deploying a webpart page where I put a view to a list : <View WebPartZoneID="Body" WebPartOrder="3" List="related" BaseViewID="4" ...
1
vote
1answer
1k views

how to Render Controls from CodeBehind into a specific Panel

I'm in the process of working thorugh Microsofts video tutorials for developing on Sharepoint. My actual small project is to create a visual Webpart which displays a list of all registered users with ...
1
vote
1answer
723 views

ASP.Net repeater web-part of a SharePoint list

This is driving me insane! Done this many times as a .Net developer but can't seem to get it working in a SharePoint webpart. Page load code... Protected Sub Page_Load(ByVal sender As Object, ByVal ...
0
votes
2answers
545 views

Adding a WebPart to a page (Stapling)

I have been trying to do this for a while now its a huge pain as I can't seem to find any good guides to show all steps for adding a web part to a page using a feature staple. I have the feature ...
2
votes
1answer
912 views

Use a repeater to display images from image library

I am creating a sandboxed webpart which display a list from my SP. I have the following code ASCX page... <asp:Repeater ID="rptCarousel" runat="server" > <ItemTemplate> ...
1
vote
1answer
242 views

Do not load data in design mode of webpart

I have custom webpart which gets data from external database using BCS. When I add the webpart in a webpart zone, it queries the BDC to get data so it take time to insert webpart. I only want to query ...
1
vote
1answer
3k views

How to access web part properties from the web part user control

I have created a visual web part containing the default user control. I want to access the custom property of the web part defined in the xml-file Mywebpart.webpart -CustomProperty- from the ...
1
vote
1answer
90 views

Own Webpart properties for each webpart

I have created my first Webpart with own properties: [ToolboxItemAttribute(false)] public class BildMitHyperlink : WebPart { [WebBrowsable(true), Category("MY"), DefaultValue(""), ...
2
votes
2answers
1k views

Adding webpart to filter view by code is not working

I need to add a new page in a new doc library. That works fine. In the page I need to add a webpart to filter list data from a view bases on 3 columns from the view. The following code is not ...
0
votes
1answer
277 views

Ajax or jquery enabled Tab Zone Webpart with SourceCode

I am trying to find a TabZone Webpart Ajax enabled or using jQuery so that when I click on tab 2 while i am on tab 1 it shouldn't do a postback and make changes without loading page again. We are ...
2
votes
1answer
2k views

Partial postback sharepoint webpart

I am trying to add update panel to my sharepoint sitepage below: I am getting the error : Failed to load viewstate. The control tree into which viewstate is being loaded must match the control ...
2
votes
2answers
700 views

Can You Add a WebPart to a Wiki Home Page via Powershell?

Salvete! Is it possible to add a webpart to a Wiki Home Page via Powershell? I have 100 sites for which I need to add a web-part to their home-pages. I know this is easily possible with normal ...
0
votes
2answers
261 views

Client Object Model Javascript intellisense

I created a new test.js file in the project node of my web part solution with VS 2010 and included the references: /// <reference path="C:\Program Files\Common Files\Microsoft Shared\Web Server ...
0
votes
0answers
87 views

Status List not functioning correctly

I have a status list that works fine and shows the indicator value and everything else I want. HOWEVER, when I try to add this status list to a web part, I can no longer see the Indicator Value...it ...
0
votes
1answer
152 views

web part properties panel covered by the master page

I'm upgrading a SharePoint site from 2007 to 2010. I'm done with all the master pages and page layouts. Is still have however a minor thing that is bugging me. When editing a page, the web part ...
0
votes
2answers
5k views

The control with ID 'XXXXX' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it

I am getting the layout issue for calendar webpart in my page . with the error message : The control with ID 'XXXXX' requires a ScriptManager on the page. The ScriptManager must appear before any ...