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
1answer
382 views

How to change the text of “Add new event” in Calender web part?

I have tried all the methods suggested online. But none seems to work. I tried the following, <script> document.all("Add new document").innerHTML="Add ur new text"; </script> and ...
1
vote
0answers
161 views

SharePoint-hosted app, with edit mode to update its own properties

I'm using the editMode parameter to detect and display a simple web part admin UI. When the admin clicks a particular button, I want to use CSOM to update the web part's properties for the page it is ...
1
vote
1answer
385 views

How to show save and control button in Sharepoint forms without having users to scroll down to bottom

In order to see "save" and "close" buttons in Sharepoint forms (edit, display or view mode), we have to scroll down to the bottom. How can I make all the controls visible at the same time without ...
0
votes
3answers
401 views

Can't allow visitors to add user webpart on some pages only

In a corporate intranet portal, I want to allow any visitor (any authenticated user) to customize some pages with user web parts. I want to restrict this customization only on some pages. By now, I ...
1
vote
1answer
435 views

Error while creating a new customer via BCS from within a web part

This is my first time that I am using BCS via a web part and in general. this is my code and I am getting the following error: The given dot notation 'CustomerID' refers to a node in Type Descriptor ...
0
votes
1answer
223 views

How to create link pages (read more links)

On my home page I am displaying some news. Every news has "read more" button clicking on which will take user to news detail page. I was thinking about doing in SharePoint like following. Please let ...
1
vote
2answers
517 views

Why doesn't a Business Data List web part work in a published page?

I have an existing publishing page with an XSL customized Business Data List web part (pulling from an SQL source). When I do a search with the web part, the loading graphic shows like it's searching ...
0
votes
1answer
142 views

How to implement a facebook like feed with comments and likes in SharePoint?

I require a web part in which feeds can be posted and users can comment and like on it.
0
votes
1answer
274 views

How to use dynamic or relative path in SPList object?

I am using the following code to read a picture library: SPList list = SPContext.Current.Web.GetList("http://win-12/sites/mysite/ImageLibrary") Problem is, in above code "win-12" is my machine name ...
0
votes
1answer
35 views

Custom webpart behaves differently with different environment?

I have a custom solution which retrieves all the list items from the list with 12000 items. I have used splistitemcollection position method to get listitems to retrieve list items. It works fine in ...
-1
votes
1answer
183 views

How to access Literal conrol from Visual Web Part code file

I have added a literal control in my visual web part VisualWebPart1.ascx file as follows: <asp:Literal id="slider"></asp:Literal> I am trying to access it in VisualWebPart1.ascx.cs file ...
0
votes
1answer
70 views

DirectoryNotFoundException when trying to read Picture Library using Linq

I am trying to read a picture library named "ImageLibrary" as follows: SPList list = web.GetList("ImageLibrary"); But I am getting following error: DirectoryNotFoundException How do I read ...
0
votes
1answer
68 views

How to display customized navigation on website?

I have a publishing site with two languages: English Arabic These sites have the following pages: English - Home - About Us Arabic - منزل - حول بنا I want to display navigation on top ...
2
votes
1answer
8k views

How to add web part in page layout?

Ok I created my first master page and now I am working on page layout. I created a new "Publishing Content Type" page layout in SharePoint Designer whose content type was "Page". In that page I want ...
0
votes
3answers
1k views

How to make web parts available to groups or users? [duplicate]

Is there a way to make certain web parts visible to selected users or groups? Thanks in advance Steve
0
votes
1answer
94 views

Adding a DateTime object to a List

I'm quite nice to Sharepoint so pardon my lack of knowledge. In my web part design, I am using this to obtain date and time from the user: <SharePoint:DateTimeControl ID="interviewSlot" ...
2
votes
1answer
52 views

To acces file from Linux server

We have a Scheduled report that generating from Business Object that is hosted in Linux Server.We required to show this report in share point site.Is there any built in webpart for this. How can we ...
1
vote
1answer
432 views

Listbox in webpart has no selection

I'm having a problem that's really blowing my mind right now, because it seems like some basic .net functionality isn't working properly. No doubt I'm missing something really obvious. I could really ...
1
vote
1answer
466 views

How write a code to webpart which change the password to Acrive Directory

I want to write a webpart to change/reset a pasword to Active Directory. How Could I do it ? Where are the user password are situated ?
1
vote
2answers
629 views

Question about webpart properties

How can I access a custom property in my webpart? I have a page that contains webparts, which contains multiple instances of the same custom webpart. I wanted to use the .webpart file to add my own ...
1
vote
2answers
3k views

Report Viewer Web Part Alternatives in SP2013

We have a need to upgrade from SP2010+PWA to SP2013+PWA. Our database server will be SQL Server 2008 R2. According to Technet, the SQL 2008 R2 Reporting Services add-in for SharePoint isn't ...
0
votes
0answers
93 views

Accessing sharepoint web part properties from an inherited class

I wonder if someone could help me understand whats going on here. I have a web part with various web part properties. I have a class that inherits the web part class so that I can access my web part ...
0
votes
1answer
260 views

sharepoint 2010 FieldRenderingControl edit mode empty values

I have a list and it has a content type called employee, i would like to render a particular column from the list and its values in a webpart. The column is a multivalue checkbox. It has some values ...
0
votes
1answer
106 views

What should be the Content Search Web Part max per page?

I'm currently working on a department site prototype for an Intranet, which is to be packaged up and used to spawn around a dozen sites using the same Web Template. While trying to convert the ...
0
votes
1answer
746 views

Proper way to evaluate/get status of boolean field when looping through SP List with code

What is the best way to do this when looping a list? I have tried to evaluate it with something like this but it wont let me evaluate bool as an "if" condition if (item["ShowTitle"] == true) //do ...
0
votes
1answer
303 views

Double value in URL from SPListItemCollection result

I have a basic list which I am using to generate a "Quick Links" menu WebPart. It looks ok but for some reason the URL field (of URL type) when rendered renders html that looks like this: <a ...
1
vote
2answers
3k views

How to hide “add new document” link in web part?

I am using several document library web parts and I want to hide the "Add new document" link on those web parts. How can this be done?
0
votes
1answer
153 views

How to enable scrolling in Custom Query Web Part as well as library web parts?

I am using several custom query web parts in the front page of the SharePoint site to show data from a sub-site. They are document libraries and blog posts. How can I enable paging or scrolling for ...
1
vote
2answers
3k views

Custom Webpart: Type not found or not registered as safe!

I'm trying to implement this web part concept provided by Microsoft in our SP2013 environment using VS2012. MSDN SPDataQuery Class Example I've created a solution in VS2012 and verified that the ...
1
vote
1answer
1k views

web part jquery ui dialog not working

I am working on SP2010 with visual web part in C#. I have added one form dialog using jquery-ui. When I use it directly from .ascx, its working. But when I am calling it from code behind, its not ...
0
votes
3answers
1k views

Putting User Control in Web Part

I'm pretty new to SharePoint but am trying to get the hang of it. What I have been doing is creating ASP.NET web application pages and then deploying those to the SharePoint site. This works and is ...
4
votes
3answers
1k views

Managed metadata refiners are not appearing

I have a site collection with many document libraries and document sets. I have created a managed property for each crawled property that I needed in the refiner, 4 out of 5 fields are managed ...
0
votes
1answer
465 views

file downloading in sharepoint

I've created a web-part. I've added few documents to it. I'm implementing download functionality. I want file download dialog. My code is like this. DownloadItem(SPListItem item) { // Get physical ...
0
votes
1answer
95 views

Webpart is not displaying as it is always shows as hidden

I have the following CEO message Web part which has the code as follows. When I edit the web part it is always shows as hidden Ticked even though it is un-ticked and saved. I can see this web part in ...
1
vote
0answers
89 views

Remove ECB from XsltListViewWebPart

I have created XsltListViewWebPart programatically. I want to remove ecb on list items, I know this can be done by changing xsl of the webpart but I am getting null in it. Is there any way to do this? ...
0
votes
1answer
245 views

Within SharePoint how do we send data to login page rather than clicking on a sign-in button from previous page?

For public facing sites in SharePoint 2010, there is a sign-in button that you click, which leads to the sign-in page. Then on the sign-in page you can enter your credentials to sign-in. Is there a ...
1
vote
2answers
411 views

Error Rendering Control: Object reference not set to an instance of an object

I am exploring on trying to create a custom webpart and I am encountering this error: In my source, I have a table in which a cell will contain SharePoint:DateTimeControl. However it will ...
3
votes
1answer
1k views

How to set start and end date in Timeline webpart in SharePoint 2013?

So here is the scenario. I want to "hijack" the Timeline webpart used for project sites in SP2013 and set a fixed start and end date. There is an option to lock the timeline in it's current state in ...
0
votes
2answers
1k views

Autocomplete Textbox from Active Directory Users

Im making a webpart where a user should be able to add other users from active directory, without being able to know their full name etc. The field should be autocompleted in some way (like googles ...
1
vote
1answer
61 views

Web Chart Axises or Reporting Solution

I have a library of items I would like to report on dynamically. For the sake of this exercise, I would like to show 2 items from the list: The region in which the list item exists The status of the ...
0
votes
3answers
301 views

Caching expensive query to use in a Web Part

I have a Web Part that connects to a SQL server and pulls summary data for the current user. (Think "dashboard".) Unfortunately this query is expensive to run so I'd like to cache the results to ...
1
vote
0answers
126 views

How to make a connection with SharePoint's simpleformwebpart?

I am using SharePoint 2010. I primarily work out of SharePoint 2010 Designer, and have some experience with visual studio 2010. I currently have a log-in page that my "Form" members go to, to log ...
0
votes
1answer
283 views

Broken link when adding discussion board to page through listviewwebpart

Background: I have a discussion board in SharePoint where users will dump emails through an Outlook connection. Then they will associate the discussion board post with a particular contact. When ...
0
votes
1answer
814 views

openfiledialog in webpart

How to implement openfile dialog in a webpart ? OpenFileDialog class could not be accessed in webpart. Is there any other way to achieve this ?
1
vote
2answers
155 views

How to pull SharePoint 2010 Reference assemblies for dedicated build server

I am trying to build my SP2010 projects on a clean build server. All of my project's are building fine with one exception. One Visual Web Part project fails with the following error on the build ...
0
votes
0answers
703 views

Best method to show all pages in site collection?

Using Sharepoint 2013 I'd like to show all pages in a site collection in a categorized view on the homepage. Would like to be able to filter on this view as well. Is this possible? I've been working ...
2
votes
2answers
305 views

Can we avoid clunky hiding of WebParts?

It's a real drag and performance killer to have to load all the WebParts on a page and then laboriously hide and reveal all the ones relevant to user groups / permission levels. Especially when on the ...
1
vote
0answers
306 views

“Actions” menu hidden in Report Viewer web part?

The Actions menu which allows for export to excel, pdf and other functions is hidden in all of my report viewer web parts. I did try to browse to the web part galleries to see if I can set it up ...
0
votes
2answers
1k views

how to change sharepoint web parts loading order

Can anyone give me advise on how I can change the loading order of SharePoint web parts. I have a CEWP which shall perform calculations based on a SharePoint list below loaded below. Thanks
0
votes
1answer
302 views

Deploying custom webpart

I've developed a custom CoreResultsWebPart which does some stuff with the search results returned in the Search Center. To test it, I just created a new search site collection and edited the search ...