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)

1
vote
1answer
364 views

Sharepoint Ribbon for view item form going full option

I have a view item form which contains a custom WebPart for displaying that item. I have no issue with that but the ribbon for the display form looks weird: It contains lots of options that don't ...
1
vote
4answers
838 views

How to access a library that is not in same farm. i.e. WebPart is in Farm1 and library is in Farm2

How to access a library that is not in same farm. i.e. WebPart is in Farm1 and library is in Farm2 My company has many farms and now I need to create one WebPart that is going to sit in farm1 but it ...
1
vote
2answers
8k views

How do get selected item of list?

I have a webpart .I add a listviewbyquary in createchildcontrols and a hyperlink in visualwebpart. i use this http://graegert.com/featured/using-the-editorpart-to-create-a-custom-listview-web-part ...
1
vote
1answer
1k views

Custom web part throws error when I try to add it to page

I am working on a custom web part, that keeps error out with: A web part or web form control on this page cannot be displayed or imported. the type is not registered as safe any time I ...
1
vote
2answers
6k views

target audience not working as expected with site group

In my SP2010 farm, I have : one domain group "AD Group" the group have domain\user2 as a member one site group "SP group" with the following members AD group domain\user1 On the home page, I ...
1
vote
5answers
8k views

Can't edit page after adding custom web part!

When I click on the edit icon nothing happens. No errors, no post back nothing. I ended up turning on the Console in FireBug and it throws this error: SP.Ribbon.PageState.ImportedNativeData is ...
1
vote
2answers
3k views

Can I load a dropdown list with a SharePoint list to set a Custom Web Part Property?

I found this post which claims to show you how to do it: http://blog.concurrency.com/sharepoint/create-a-custom-web-part-for-sharepoint-2010/comment-page-1/#comment-1851 But after carefully ...
1
vote
3answers
319 views

Possible to have users configure a few values when adding a webpart to a page?

I have a web part that has to does something specific with a list. I would like to have users specify which list they want the web part to use when they add it to a page and not worry about it again. ...
0
votes
1answer
24 views

How to retrieve target menu of specific list web part for CAMOpt?

I'm adding a custom action on the context menu of the item using javascript CAMOpt function: function Custom_AddListMenuItems(m, ctx) { CAMOpt(m,'View (new ...
0
votes
0answers
34 views

How to show two sub web parts within a web part?

On my front page, I have a web part. Inside that web part, I have two sub web parts ( a library and a list). On the front page, in the web part, how can I show the first two items of the library sub ...
0
votes
1answer
20 views

Where can i find 'posts' web part? [duplicate]

I'm talking about this web part. This web part displaying a few posts (description + title).
0
votes
1answer
66 views

Get the list of all webparts IDs in a page using REST/CSOM

I have few content editor web parts in my page I need to get the GUID of all the web parts that are there in the page I am able to get the list of all webparts in the page by navigating to ...
0
votes
0answers
50 views

Display name not rendering correctly

I have a simple InfoPath 2013 Form. I have the Data Connection to the User Profile Service connecting and when I Preview my InfoPath Form it shows the correct Display Name of the user. However my ...
0
votes
2answers
66 views

How to display:none webpart Update

I get all webparts that I have in default.aspx using this code var pageName = "/sites/default.aspx"; var ctx = new SP.ClientContext(); var pageFile = ...
0
votes
2answers
377 views

Quick edit will not appear in some views but will inside others

I have created a list with different views and each view is a standard view style. I set up a link to the view and edit the web part properties to show the tool bar. Now before I selected show tool ...
0
votes
1answer
43 views

Please suggest me controls for weekly view of calendar

I want a control like to get weekly view of calendar in boxes.User need to be navigated to another week and default view is current.I don't know how to achieve this.I tried calendar weekly view.But ...
0
votes
0answers
249 views

Tasks from multiple lists displayed on one timeline/project summary

I have a site with two lists for tracking tasks. I also have the Project summary webaprt on the homepage. Is it possible to display tasks from both lists on the project summary/timeline on the ...
0
votes
1answer
1k views

Sharepoint 2013 Custom Web Part: Get and display data from Oracle and SqlServer databases

I'm developing a Custom WebPart to retrieve data (based on certain queries) from a SqlServer and Oracle databases: The data should be displayed in a grid/table/etc with sorting, filtering and ...
0
votes
2answers
284 views

How to upload jQuery library into web parts without master page

I am in the process of migrating from SP2010 to SP2013. In SP2010 the Scriptlink feature was used to upload all of the jQuery libraries from the master page. Currently I want to test some web parts in ...
0
votes
1answer
888 views

The file /_controltemplates/15/ does not exist

We are planning to migrate from share point 2010 to SharePoint 2013.So we have created one POC environment to test the customizations(master pages,Page layouts,web parts,site definition,Site ...
0
votes
2answers
522 views

Not all views being displayed in my web part

Issue: Not all views being displayed in my web part. When selecting a view in my web part it only shows 30 views. How do I get it to show all views created for a list if there is more then 30?
0
votes
2answers
426 views

Multiple Webparts with the same Javascript

I have a site with multiple Webparts. Some Webparts are linking on the same .html file. The HTML file reads data from a list and displays it in a table by using javascript. My problem is that there ...
0
votes
1answer
3k views

RegAsm : error RA0000 : Could not load file or assembly or one of its dependencies. The system cannot find the file specified

I am new to sharepoint. I try to add the Microsoft.SharePoint.dll to GAC. For that one I have used below code Code : `c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319> Regasm.exe ...
0
votes
1answer
899 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 ?
0
votes
2answers
2k views

how to hide webpart in Home.aspx based on some condition

I work in a financial company where we have Resident Engineers and they have account in Active Directory but they dont have official email addresses. My portal acrhitecture is like everyonce can ...
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
3answers
692 views

Webpart properties getting empty after IIS Reset

I created a custom visual user control webpart property for my SharePoint webpart. The property has a textbox which is getting empty after an IIS reset. Can anyone tell me how to solve this issue ...
0
votes
1answer
1k views

Feature Elements File

I'm having some difficulty creating a Feature which contains a Web Part and a links.xml which is processed by the WP code-behind. My difficulty is in understanding the Feature XML config files and ...
0
votes
2answers
508 views

Does web part property validation only work for visual web parts?

Suppose I define a web part property like this: private string _myString = "default value"; [WebBrowsable(true), WebDisplayName("My string"), WebDescription("A simple bit of text to ...
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
1answer
387 views

Customizing XLV web part's xslt

I have a list with few views. I've updated one view. Made column to be bold in the list's view. Then I opened a web part page and added this list (Page Tools -> Insert -> Existing Lists) then opened ...
0
votes
2answers
678 views

Rendering Webpartzone is to large

I have a Div box with an Webpartzone in it. But when i'm rendering my page, the webpartzone is to large. I thought a webpart zone has the width of 100% of his parent container. But not in my case. ...
0
votes
2answers
273 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
1answer
1k views

Forms Based Authentication Users in the SharePoint 2010 People Picker Not Working

I Created custom login page . I use this code for login if (Membership.ValidateUser(Username.Text, Password.Text)) { SecurityToken tk = SPSecurityContext.SecurityTokenForFormsAuthentication( ...
0
votes
1answer
70 views

web part view without the selection button

I am trying get a look and feel like central admin resource list view wp. I created exactly same type list and populated. But my list view does not have bullets and when I hover over the link it gives ...
0
votes
1answer
356 views

How do I retrieve the “Title (linked to edit)” column from event list to display in my custom web part.

I am creating a visual web part to display the calendar events in the form of an events list with custom css. The web part will be on the home page of my site. Here is what I have right now and it is ...
0
votes
3answers
12k views

Cannot connect to the Sharepoint Site from Visual Studio 2010

I'm new to Sharepoint. I'm trying to create a simple webpart using Visual Studio 2010 but when I try to validate my Sharepoint Server (both VS 2010 and Sharepoint are present in two different system - ...
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
2answers
5k views

How to remove “created by” on SharePoint blog post item?

I recently created a blog site and posted few blog posts but then I realized that "created by" column is showing on the item. I tried to check what page layout a post is using but I simple found ...
0
votes
1answer
2k views

GridView control - paging with linq. Where is objectDataSource?

I have visual web part with custom logic which retrieves me strongly typed list (not SPList -> .NET list object) which than I bind to gridview which has paging enabled. That works fine. Problem is: ...
0
votes
0answers
76 views

how to validate custom web part property? [duplicate]

Possible Duplicate: How to validate Web Part property value? below is a custom prop and a code that i am using for my custom web part, my question is, how to validate a custom web part and ...
0
votes
2answers
966 views

<WebPartPages:PictureLibrarySlideshowWebPart adding links

Does anyone know how to change the link on the image to be whatever is in [link] field within the same library? (I added a column/field called link). The link on the image is a link to the image, but ...
0
votes
1answer
161 views

SharePoint Web Part Gallery details of each web part

When using SPWeb.GetCatalog(SPListTemplateType.WebPartCatalog), it returns an SPList which of course contains a SPListItemCollection of the web parts in the web part gallery. When looping through the ...
0
votes
3answers
683 views

Filter webpart on the Search Page

Basically, I am Sharepoint administrator and my bad time have to create/introduce a Filter webpart on the search page Expectations are I have a custom List with 10+ columns (like CustomerID, ...
0
votes
3answers
194 views

Solution deploying 'succesfully', yet doesn't..

MOSS 2007 :) I am having problems deploying a webpart.. This webpart was successfully installed and deployed on a similar environment with no problems. However when trying to deploy it in its ...
0
votes
1answer
815 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 ...