Skip to main content

All Questions

Filter by
Sorted by
Tagged with
15 votes
2 answers
30k views

Difference between WebPart & Visual Web Part

I'm not sure how Visual Web Part is different from the actual Web Part in SharePoint 2010. Thanks!
xorpower's user avatar
  • 453
8 votes
5 answers
28k views

Error occurred in deployment step 'Activate Features'

I am creating and deploying Visual Web Part on SharePoint 2013 with VS 2013 as Farm Solution. When deploying Web Part on the server i get the following error: Error occurred in deployment step '...
Pranav Bilurkar's user avatar
5 votes
1 answer
136 views

When developing web parts, which is better server context or client context?

When developing a webpart for deployment as a farm solution is it better to use the Sharepoint server context Microsoft.Sharepoint? Or is it a better practice to use the Microsoft.Sharepoint.Client ...
Brad Fortner's user avatar
5 votes
1 answer
4k views

How to create a multilingual visual webpart in SharePoint 2013

Have anyone ever implemented multilingual visual web part in SharePoint 2013? I see there are many links out there on this topic but they are not cohesive and complete. I don't know how can I address ...
Pouyan's user avatar
  • 475
5 votes
2 answers
12k views

How to change active directory password using Code?

How to change active directory User Account Password using code?
Rajesh Joshi's user avatar
  • 1,344
5 votes
1 answer
385 views

SPCalendarView not working properly in Sharepoint 2013

I have Created a Custom Calendar webpart using SPCalendarView type. After adding this webpart to my page it is not displaying any events and the navigation buttons(two arrow buttons) for changing ...
Unknown's user avatar
  • 309
4 votes
5 answers
5k views

Visual web part and custom web control - can't register

I have created visual web part and copied custom web control which I'd like to use. My control looks as below: namespace AppsListWebPart { [ToolboxData("<{0}:CustomImageButton runat=\"server\"&...
jjczopek's user avatar
  • 1,547
2 votes
1 answer
4k views

Use a querystring parameter in a CAML Query

I want to pass a parameter between two separate web parts I am developing. In my 'Detail' webpart i need to build a CAML query to display the correct profile based on their name. pdquery.Query = "<...
Stephen's user avatar
  • 1,812
2 votes
3 answers
10k views

Getting error "Attempted to use an object that has ceased to exist." when adding web part

I have created a web part in visual studio, it deploys fine, but when I try to add it to a page I get the following error: Attempted to use an object that has ceased to exist. (Exception from ...
Abe Miessler's user avatar
  • 6,755
2 votes
1 answer
104 views

Show hide User Controls in a webpart or switch between webparts

How we can achieve below scenario in SharePoint 2013,I am confused where to start: I have webpart which will do login functionality based on list, once user Logged success I need to show a List Items(...
mzonerz's user avatar
  • 406
2 votes
1 answer
40 views

Top visited entries on site collection blogs

I want to develop a web part which shows the ranking of entries of a site collection. By now, I think a way to do this is to use a Javascript code added on the master page which adds a row to the ...
Daniel 976034's user avatar
2 votes
1 answer
2k views

Visual Web part - async load

I want to create async load of visual web part. Code behind (web part) needs some time to load data so I figure to create that in async way (on page load). Scriptmanager is placed in master page (ajax ...
trip's user avatar
  • 419
1 vote
2 answers
1k views

jQuery.noConflict() and Sharepoint 2010 WebParts

I've made two webparts for Sharepoin 2010 with jQuery plugins fancybox (slider) and cycle (slider). I need to locate both webparts on one page. But it doesn't work. I tried to use jQuery.noConflict() ...
Max Zhukov's user avatar
1 vote
2 answers
2k views

Access denied in Sharepoint 2010 HTTP handler (.ashx)

I've developed a Visual Web Part for Sharepoint 2010 that includes an HTTP handler for some AJAX functionality. I followed this guide to accomplish this. I've createad a brand new SP 2010 web ...
empz's user avatar
  • 781
1 vote
1 answer
5k views

SharePoint 2010 Visual Webpart vs SharePoint 2013 Visual Web part

Having a SharePoint 2013 installation, I wanted to try creating a web part for SP 2013. I opened visual studio 2012, I could see, project templates for SharePoint 2010 visual web part and SharePoint ...
Biju Joseph - MCSD's user avatar
1 vote
1 answer
2k 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 ...
Marco's user avatar
  • 501
1 vote
1 answer
461 views

For SharePoint Online, is it possible to install an app globally for a Hub Site Collection?

I am looking for the ability to install an app for my collection of sites and manage the app's content from a central location, but add the corresponding web part to pages in several different sites ...
Pat Kavanagh's user avatar
1 vote
2 answers
2k views

Solution Option is missing in Sharepoint Online

I have created the trial site on Office 365. I have created a Test Site in SharePoint Online. Now I want to deploy custom web parts on SharePoint Online refer to the following link: https://...
Alina Anjum's user avatar
1 vote
1 answer
2k views

How to get webPart XML with powershell from SharePoint WebPart Gallery

I want to get web part XML from SharePoint Web Parts Gallery(not locally) for add webpart into a List page. This is my code: $spWeb = Get-SPWeb $webURL $spSiteCollection = Get-SPWeb -Identity $...
Goshky's user avatar
  • 2,058
1 vote
1 answer
137 views

Best way to add custom webpart

What is the best way to add a custom webpart to a sharepoint default page(i.e list page like NewPost.aspx) and/or into the webpart gallery programmatically without directly deploying from Visual ...
Unknown's user avatar
  • 309
1 vote
1 answer
403 views

ASCX controls, how to prevent multiple inclusions of same Javascript file?

By example we have two webparts on page, with ascx controls. One ASCX control loads this.Controls.Add(new ScriptLink() { Name = "/layouts/15/...
Gennady G's user avatar
  • 1,623
1 vote
1 answer
1k 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...
Xavin's user avatar
  • 63
1 vote
1 answer
68 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)?
mikey's user avatar
  • 349
1 vote
2 answers
2k views

Causes of "The Web Part you are connecting from does not allow authoring of connections"

When I add my provider and consumer web parts to a web part page (following Walkthrough: Creating Connectable Web Parts in SharePoint Foundation) I find that the 'Connections' option on my webpart is ...
Kirk Broadhurst's user avatar
1 vote
1 answer
947 views

Building a custom web part for SharePoint 2010

I'm interested in building a custom web part for SP2010 that's editable by the page editor via the web part menu's "Edit Web Part" option; specifically, I'd like to start with this: http://blogs.msdn....
Alex C's user avatar
  • 4,405
1 vote
2 answers
903 views

How to make web part static content searchable?

I have a local, on-premise dev installation of SharePoint 2013 standard edition. I created a visual web part with sample static content. Added this webpart to a webpart page. When I do a search from ...
Codie's user avatar
  • 131
1 vote
1 answer
2k views

Populate Custom Web Part Property from List

I have a custom web part (Contact Info) with a property (Topic). The topic is a drop down list (ie behind the scenes its an enum type. What I would like is for the values of this dropdown property to ...
Neberu's user avatar
  • 178
1 vote
1 answer
95 views

Submitting data from PeopleEditor control in Web Part gives error

I have a web part that submits data to a list and it uses a PeopleEditor control for selecting users. Once user is selected, when I submit the form it gives following error Invalid data has been ...
soccer7's user avatar
  • 919
1 vote
1 answer
495 views

display Multi parents-childs dynamic Diagrams in sharepoint web access

We design KMS (Knowledge Management Systems) with SharePoint that everything is OK but we need to Display relations between entities,Documents and etc. in Web access. my question about solutions: (...
saber tabatabaee yazdi's user avatar
1 vote
3 answers
1k views

Retrive data using Caml Query Join Operation

How can I retrieve data from two SharePoint List using Join CamlQuery ?
Rajesh Joshi's user avatar
  • 1,344
1 vote
2 answers
3k 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 ...
Tudor's user avatar
  • 432
1 vote
2 answers
990 views

How to get FBA users' profile with ASP.NET

I'm getting Windows users' profiles, in my webpart, doing the following: UserProfileManager pm = new UserProfileManager(SPServiceContext.Current); SPUser spuser = web.AllUsers.GetByID(user.Id); ...
Brian Roisentul's user avatar
1 vote
1 answer
897 views

Visual web part properties - override drop down list text

I have an visual web part with custom enumeration property which is rendered as drop-down list. I'd like to localize what is displayed in the list, because it's not very informative for the end user. ...
jjczopek's user avatar
  • 1,547
1 vote
1 answer
3k views

SharePoint 2010 : Visual Webpart - Multiple User Control

SharePoint 2010: Visual Studio 2010 I have requirement : i have one web part and using custom web part property i load 4 different user control. Solution 1 : I created web part and using custom web ...
Monica Jagani's user avatar
1 vote
2 answers
317 views

SharePoint 2016 Visual Web Part - error importing webpart when compiling, am I missing something simple?

I'm trying to just build a super simple web part for on-prem, I go into VS 2017 and I select SharePoint 2016 - Visual Web Part, I don't modify any of the code and then I just compile and deploy and ...
Christopher Bruce's user avatar
1 vote
0 answers
26 views

Can't get sandboxed 2013 web part to emit client side JS for validation

I am developing a sandboxed feature for 2013 that includes several custom aspx pages, each with its own sandboxed web part through the SPUserCodeWebPart control. This project has had a long and ...
flayman's user avatar
  • 171
1 vote
0 answers
129 views

Show ribbon bar "Documents" in WebPart page

I have created a WebPart. It consists of some HTML / JavaScript code for filtering a document library and a ListViewByQuery-WebPart for showing the results. Is it possible on this WebPart Page to show ...
dns_nx's user avatar
  • 181
1 vote
0 answers
386 views

I am facing $Resources:core,ImportErrorMessage; while adding sharepint2013 webpart

I am getting below error while adding WebPart in webpage $Resources:core,ImportErrorMessage; Please tell me things to do for resolving this error.
akj's user avatar
  • 351
1 vote
3 answers
2k views

SharePoint DateTimeControl does not render the calendar in web part

I have created a web part for creating new list item using VS. Web part has a DateTime Control. If I click on Calendar icon then it does not render it, rather gives a server error. I have included ...
soccer7's user avatar
  • 919
1 vote
0 answers
250 views

Error While Adding Visual Web part To Master page in 2013

I am Trying to add a Visual Web part with Custom css and Java script in it. When i try to add in a layout page It works fine. But when I used the below steps http://ukreddysharepoint2010.blogspot.in/...
santosh kondapalli's user avatar
1 vote
1 answer
184 views

SharePoint 2010 and 2013 can't not find SPLimitedWebPartManager

I trust this is one of the most common question when approaching with adding webpart to you sandbox solution through SharePoint 2010 or SharePoint 2013 I have researched google for a while and can't ...
tbbt's user avatar
  • 334
1 vote
1 answer
178 views

How to debug why i cannot add a webpart to a page in SP Designer

I have several custom webparts which i am attempting to add to a custom page WebPartZone using SPD2010. I can successfully add one, however when i attempt to add the other i get an "Error Creating ...
user5389's user avatar
1 vote
0 answers
1k views

CreateChildControls() in Visual Web Part in SharePoint 2010 called twice

(x-post from https://stackoverflow.com/q/17065543/1943) I have a Custom SharePoint 2010 Visual Web Part which I've realized is calling the CreateChildControls() method twice. I've tried setting the ...
Ryan Shripat's user avatar
1 vote
0 answers
168 views

Import Error on ChartDataProvider Webpart

My Sharepoint project contains a visual Webpart which retrieves data and works fine. In addition to that, I want to display some Chart webparts which visualize this data. In order to do so, i added a ...
Marco's user avatar
  • 501
1 vote
0 answers
358 views

Change month in SharePoint MonthlyCalendarView control

How to change month in SharePoint MonthlyCalendarView Control? It seems, there is no way to change month in calendar or change view of calendar.
Rajesh Joshi's user avatar
  • 1,344
1 vote
1 answer
4k views

How do I Retrieve the choice values of a column in a Document Library

I am fairly new to SharePoint development and as you may all know that it is very basic for one to know how to access fields in a choice column... My problem: I want to access the values of the ...
MyName's user avatar
  • 147
0 votes
2 answers
1k 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 ...
Annap's user avatar
  • 3
0 votes
3 answers
4k 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: ...
grekko's user avatar
  • 47
0 votes
1 answer
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 ...
jjczopek's user avatar
  • 1,547
0 votes
1 answer
3k views

SharePoint 2010 Adding Web Part Error: Object reference not set to an instance of an object

I created a Farm Solution visual web part in a development environment (VM). I've run into issue while attempting to deploy this Visual Web Part in a test environment. I added (Add-SPSolution), ...
David Calvin's user avatar