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)

0
votes
2answers
161 views

Search core query webpart and custom xslt with paging or other approach

I have an issue, basically I created a custom web part which inherits from SearchCoreResults. This webpart searches all the possible tasks across WHOLE sharepoint and shows them if they are not ...
0
votes
0answers
43 views

Code in the web part

I have the following code in a web part which does the job to pull the information from the external website and create an XML file as data source to a datalist web control. This Data list should be ...
2
votes
1answer
919 views

Client Web Part - Determine if page is in edit mode

Like in topic. How to determine in a client web part (on remote web) if a page that the web part is placed on, is in edit mode? if it is possible?? Thanks
1
vote
1answer
170 views

How can I apply a Web Part to all the sub sites?

I have an Enterprise Wiki site collection and it have 5 sub sites, currently I have implemented a Web Part which extended the page layout. But I am facing this:- To apply the page layout I have to ...
2
votes
0answers
94 views

Making Table of Contents Webpart Relative to Site

I'm creating a sidebar navigation in a Page Layout and one of the items I'd like is a Table of Contents. I got it to work and it's showing the navigation links, however I have to set it up for each ...
0
votes
1answer
241 views

How I Can I add a code behind to a layout page using web parts

I am following this link on how to create metadata navigation :- http://markuspersson.wordpress.com/2012/01/19/add-metadata-navigation-on-custom-page-layouts/ so I added the references for the ...
0
votes
1answer
92 views

How to approach a file in visual webpart

To explain my question, lets consider I'm developing a webpart in Visual Studio, a visual webpart. By default when I add a webpart to solution, it creates a MyWebPart wich exists of 3 files: ...
1
vote
1answer
669 views

Set Web Part Recommendation Settings in elements.xml or .webpart file

Is it possible to set the Recommendation Settings of a WebPart in the elements.xml or .webpart file? Just like you can do with Group, Title and Description...
0
votes
1answer
750 views

Sharepoint Online SPUtility.GetLocalizedString in WebPart

Trying to get localized content working on Sharepoint Online. I followed the steps here: http://msdn.microsoft.com/en-us/library/fp179919.aspx#LocalizingAppWeb to create 2 resource files under ...
1
vote
3answers
2k views

How to Make Webpart Title to Display Day of the Week?

I have list View webpart in my sharepoint 2010 team site home page. Generally Web Part title can be easily modified by editing the webpart and providing Title value. I am looking for a solution to ...
0
votes
1answer
452 views

How to add the close button in SP.UI.Status

I use status bar to show exception message in code-behind. I wanna add a close button in the status bar for user, so they can remove the bar. Here is my code: protected virtual void ...
2
votes
1answer
126 views

Error using ListViewWebPart in a “using”

This one has me stumped. I'm creating a ListViewWebPart, which ultimately inherits from System.Web.UI.Control which implements IDisposable. So ListViewWebPart should also be IDisposable. Right? But ...
0
votes
1answer
44 views

Display custom library in webpart?

I created a library called Training and I want to display that on my page in a web part. How is this achieved?
1
vote
1answer
715 views

Update list content using a web part

I'm currently displaying content from a list using a webpart, is it possible to update the content of this list using the webpart ? I would prefer to use an 'out of the box' web part. How can I ...
0
votes
2answers
47 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?
1
vote
1answer
340 views

Full-Trust Solutions on SharePoint Online Dedicated

I am trying deploy a solution to SharePoint Online (SPO), after looking at documentations about SPO, I found only Sandbox Solutions and Apps can be deployed to SPO, but my solution is a Farm Solution. ...
1
vote
1answer
2k views

How to call method on code behind class from webpart ascx

I have a very simple webpart with the code behind below. using System; using System.ComponentModel; using System.Web.UI.WebControls.WebParts; using System.Linq; using ...
0
votes
1answer
434 views

programmatically manipulate survey list perform add update delete operation

I want to create Polling app. For that i want to learn about survey list. That can I add update delete survey list data Programmatically.? First of all i want to create a web part which perform this ...
3
votes
2answers
793 views

How to publish blog posts on behalf of another user in SharePoint 2010?

I have blog for our management team. Assistants will be posting instead of the managers. I have created a column called "Author" which is "people/group" lookup field for the assistants to add a person ...
1
vote
1answer
57 views

Can I access in a SharePoint 2010 Online webpart, some webservice and do some CRUD?

I am using SharePoint Online. It is only possible to build sandbox solutions webparts. Is it possible in a sandbox solution webpart to access a webservice somewhere on the internet? I would like to do ...
0
votes
4answers
2k views

Add css class to WebPart placeholder div

I have a simple webpart that all it does is go through a list of items and uses a repeater to display the html. The webpart itself however wraps the generated repeater elements with a div like this: ...
0
votes
1answer
188 views

Sharepoint Online traverse List Items and output HTML

I am building my WebPart locally and when ready will deploy to SPO. I want to traverse the items of a list using LINQ (or whatever is most proper) and generate HTML based on those items. That's all ...
2
votes
1answer
355 views

Updating contents in a custom webpart in a Discussion Board topic page

I have made a custom Visual Webpart. I'm wanting to periodically update a label in the webpart without refreshing the whole page. I've got the label to update, however it is also updating the replies ...
1
vote
2answers
381 views

How to access list data using a web part?

I have a list which displays multiple rows of text. Is there a custom Sharepoint web part I can use to select specific row ? This question How do i display data from multiple lists? is in relation to ...
1
vote
1answer
3k views

How to show organization chart in SharePoint 2010

How to show organization chart for a company in intranet portal without using any third party web part? what is the simplest way to show data correctly?
0
votes
1answer
28 views

Is it possible to share the same list type among different sites?

I'm accessing list content via its corresponding webservice. I'm re-creating new lists for new sites but often the list content type is the same - image, link etc.... Is it possible to create a list ...
0
votes
2answers
75 views

When creating a sharepoint site can list content be mixed with web-parts?

When creating a sharepoint site can list content be mixed with web-parts ? So the list content can easily be exposed with a web-service and the web parts can exist alongside the list content parts.
0
votes
1answer
687 views

Minimize WebPart is hidden SharePoint 2013

In SharePoint 2007/2010 you always had the little arrow on the right side of WebParts which could minimize WebParts or edit them. SharePoint 2013 does away with these and doesn't render the ...
1
vote
0answers
138 views

ViewState Timing Issues with SharePoint 2013 & ListView plus DataPager

Good morning! I'm porting an existing custom 2010 webpart containing a ListView and a DataPager to 2013 and seeing some weirdness with the DataPager and I believe the cause is associated with the ...
0
votes
1answer
955 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
3k views

How to get SPListItemCollection from a SPFolder?

I am making a SharePoint 2010 visual web part, and I want to recursively iterate through all files in a document library which has nested folders. I can get a SPListItemCollection for all items and ...
1
vote
1answer
259 views

How do I fetch the most popular search terms?

I'd like to display a usercontrol on the homepage of my SharePoint site. The control will display a list of the most popular searches performed in a given period, say the previous month. Does anyone ...
1
vote
1answer
224 views

How to use the reorder method for document library?

I have a document library of 179 documents, and I want to reorder them. I have this code to try swapping the first two documents bool u = sharepoint.library.Ordered; if (!u) { ...
2
votes
2answers
699 views

Can you add metadata to a folder in a document library?

I am making a visual webpart for SharePoint 2010 that displays files and folders from a document library, and I want to keep ordering to folders. I want to be able to sort folders so I need a way to ...
1
vote
3answers
215 views

Where to expose the data within a web part via a web service

List data can be exposed via a web service but how can web parts be also exposed via a web service ? I think this question is similar to ...
0
votes
1answer
80 views

SharePoint 2010 Publishing - are you able to modify web part?

I have a publishing site and I created a page, which allows publishing, but also allows me to add web parts. When I open this page in Designer it informs me that I can only edit the layout mode and ...
0
votes
1answer
90 views

How to utilize sharepoint 2010 pdf searching programatically?

I am making a SharePoint 2010 web part that basically manages a document library of PDF documents. One component that I am working on is searching through PDF documents. I tried a custom PDF dll ...
3
votes
2answers
1k views

Search Box disappears when I save Web Part Settings

I am checking the "display search box" option in my web part properties and clicking "ok" but the search box disappears. When I click "apply" it will show the search box, but it will disappear again ...
0
votes
1answer
47 views

wss 3.0 content database has expanded exponentially without any data added in it

I am hosting wss 3.0 web application in windows 2003 server with sql 2005 express edition. we are leveraging lots of out of the box functionality, but we also have some custom features and web parts. ...
0
votes
1answer
82 views

textbox visual control how to get text

i have a user control, which has update panel and a button in it, when i click on button a message box appears, in messagebox i have one text box and another button, when i click on another button, ...
1
vote
1answer
34 views

no getting user control property from webpart

I am using this MSDN tutorial but it is not working, http://msdn.microsoft.com/en-us/library/ff649867.aspx When I try to get a usercontrol value, nothing comes up try { // Loads a user control ...
3
votes
1answer
1k views

Using the razor engine in SharePoint 2013 Visual Web Part

I'm trying to make use of the razor engine in a SharePoint 2013 Web Part. This, I read, shouldn't be too difficult since SharePoint 2013 Visual Web Parts can be built using .NET Framework 4.0 I'm ...
0
votes
3answers
177 views

User control propertie get from webpart

I have a webpart that is loading a user control, but I am not able to get the value of a webpart property in the loaded user control. The web part code goes like this: public class CVWebPart: ...
1
vote
2answers
1k views

How to implement HTML5 Video in Sharepoint 2010?

Has anyone had any success in building a web-part with HTML5 video and using it in SP 2010? Background: Currently I am using JWPlayer by imbedding an HTML page using a content editor web-part. I ...
0
votes
2answers
86 views

Help embedding asp.net page in a Sharepoint Web Part

First off, I do not have access to designer, so I'm attempting this through my SharePoint site's on-page edit tools. I realize that this may not be possible, but I'll ask the question anyway. :) I ...
0
votes
2answers
1k views

How to display and get the value chosen in an User field?

I'm very new at Sharepoint and I faced to a trick issue. Here is the situation : in an .aspx.cs file, I've created an EventHandler called btnValidate_Click, raised on a click on a button. In this ...
0
votes
1answer
220 views

Filtering Web Part on Lookup Field with multiple values

I'm looking to be able to filter a web part to show multiples values, based on a field in another web part that contains multiple values. The scenario I'm testing is: In a school environment, the ...
0
votes
1answer
339 views

Add button is missing when I tried to Add a WebPart

I have "People search results (Page Layout)" page with Content Type = "Welcome Page". I need to drop another people search result web part on this page. I can see the all web parts but Add button ...
0
votes
1answer
658 views

using list's newform.aspx as a webpart

I want that the newform.aspx of the list would be in a webpart page, meaning that when I call the page there will be a webpart in it which will show just the newform.aspx inside it.... can this be ...
0
votes
2answers
100 views

How do I dynamically insert a web part onto a page using Sharepoint Designer 2010?

I have a requirement to create a DVWP which queries a list of items: 1.1, 1.2, 1.3 etc. I have a webpart that takes an input (i.e. "1.1") and does some cool stuff with it. What I would like to do is ...