The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.

learn more… | top users | synonyms (3)

37
votes
61answers
6k views

List of SharePoint development tools

What tools do you consider essential in your SharePoint development toolkit? One answer per tool please so the community can vote!
31
votes
6answers
17k views

How to update custom master page and page layout, which is already deployed

I have a feature which deploying custom page layout. It's done by this code: <Module Name="MasterPageModule" Url ="_catalogs/masterpage"> <File Path="MasterPageModule\defaultTemplate.aspx" ...
28
votes
4answers
1k views

How can I make a SharePoint open source project at home?

I have an idea for a small SharePoint solution that can be quite useful, and I'm thinking about writing it in my spare time. How can I do it? This is a relatively small project, which I don't ...
26
votes
2answers
6k views

When to use OpenWeb() vs RootWeb

I am a little confused on the pro's and con's of each. When is it good to use OpenWeb() vs RootWeb, especially in the context of a using statement.
18
votes
3answers
4k views

Find Document by GUID

I'm missing something that must be so simple that it's not even worth asking... but I have an object ID (GUID)... How do I figure out the document it points to? For example I have a GUID of ...
17
votes
4answers
347 views

Infrastructure knowledge for SharePoint developers

As a SharePoint developer I find that having a good understanding of the underlying infrastructure (such as Active Directory, DNS server, etc.) is very useful. I must say I'm not that good when it ...
17
votes
4answers
1k views

How are you doing automated testing?

One area that I have always found a challenge is being able to get my automated builds (in whatever guise, MSBuild Nant etc) to deploy the created solution (WSP) to a remote machine, install and test ...
14
votes
2answers
3k views

How to access my “Outgoing E-Mail Settings” from code?

Is it possible for me to pull the values that are in: Central Admin -> System Settings -> Configure outgoing e-mail settings from my code behind using the object model?
12
votes
2answers
13k views

Safest way to get a date from Sharepoint into a C# datetime field, using object model?

If I have a Sharepoint list item with a date field. How can I get the field value populated into a c# datetime object? For example: DateTime validfrom = Convert.ToDateTime(item["validfrom"]); ...
11
votes
8answers
7k views

Event Receiver Firing for all Lists - even when ListUrl is set

I have two custom list definitions - List 1 and List 2, both with different ID's for the Type in the elements.xml. List 1 is called 'List1' and the other is called 'List 2', note that the second list ...
11
votes
2answers
1k views

When to use SPItem vs SPListItem

I am confused on when to use SPItem vs SPListItem—specifically when grabbing items from a document library. What are the benefits of each and downsides of each.
11
votes
5answers
4k views

Can't install Sharepoint Foundation 2010 on Windows 7

I'd really like to prepare development environment for Sharepoint 2010. This is what I did: I installed Windows 7 x64 I installed VMWare Workstation Created a VM domain controller based on Windows ...
11
votes
2answers
6k views

How do I connect with SharePoint Online Web Services in order to access list and taxonomy data?

I am using the SharePoint SOAP web services to try collecting list and taxonomy data from a site on SharePoint Online. The following code works nicely when connected to a standalone SharePoint farm. ...
10
votes
4answers
5k views

Getting my head round spsite vs spweb vs anything else

I am fairly new to Sharepoint development (But learning it rapidly due to some initiatives I have in place - not exams). Anyway, one of my biggest stumbling blocks is the naming convention for ...
10
votes
4answers
9k views

SP.UI.ModalDialog.showModalDialog using the html option

http://msdn.microsoft.com/en-us/library/ff410058.aspx says that you can use the option html to display html text in a modal. I have a string like this; var html = ...
10
votes
2answers
771 views

“Best Practices” for SharePoint customizations/development to easily migrate to new SharePoint versions

Do you know of any documents that describe “best practices” for SharePoint customizations (especially custom developments) in order for these customizations/code (for example web parts, event ...
10
votes
1answer
583 views

The remote event receiver callout failed

I've created an AppEventReceiver for my High Trust Remote app, when I deploy the app through Visual Studio 2012 I get the following error The remote event receiver callout failed The HTTP request is ...
9
votes
9answers
5k views

ASP.Net WebPart or SharePoint WebPart

This is an almost religious question; what are your preferred base classes for building WebParts in SharePoint? Are you using the ASP.NET WebPart (System.Web.dll) or the SharePoint WebPart ...
9
votes
6answers
1k views

How to choose a development computer for a SP 2010 environment?

I'm looking for a descent development computer that targets SharePoint 2010. The computer must be a laptop and does not have to rely on a domain controller (or at least not all the time). What are ...
9
votes
1answer
189 views

Passing args to QuickLinksDialog with JS

I have a small button on a site which when i press should start a QuickLinksDialog and fill in some of the fields there. Everything goes good and well except the fields (like: title and url) still ...
8
votes
1answer
1k views

Best practices for creating a shared code library for SharePoint projects

I have several projects for SharePoint 2010 (mostly they are separate solutions built each to separate wsp's) in active development. And I have a similar tasks in these projects (logging, ...
8
votes
5answers
267 views

Should I use lots of SharePoint Lists or a SQL Database to store the data for my new bespoke application?

I am working on a project to create a new bespoke intranet website for around 50 users. The data volumes are relatively small, but in order to model the data I need to store (about the 100 or so ...
8
votes
2answers
111 views

How do I delimit Property bag values so search treats them as individual searchable words?

currently I'm using the property bag with values that are comma separated something like: web.AllProperties["fruits"] = "bananas, apples, oranges, tomatoes"; Currently search is treating them as one ...
7
votes
9answers
9k views

What are good ways around the List View Threshold?

I'm trying to use data from a SharePoint list in SSRS (Reporting services). The report isn't too big - only a few dozens rows, but for each row I need to add data from a second list, which (currently) ...
7
votes
5answers
1k views

Is it possible to package, deploy, and use my own image for a ribbon CustomAction in a SharePoint-hosted App for SharePoint 2013

I've been working on a SharePoint-hosted app for SharePoint 2013. In order to "extend the reach" of the app a bit, I've included a CustomAction that will add a button to each document library's ribbon ...
7
votes
3answers
3k views

WebPart where to store a connection string

I have a webpart that connects to an external DB. I need somewhere to store the connection string. It is possible for this data source to change but would always be the same for the site collection ...
7
votes
3answers
579 views

Should SPWeb objects be passed to other methods or re-instantiated?

Should I pass my SPWeb object to a method or recreate it in that method?
7
votes
4answers
869 views

What are the dangers of using a static class that contains your SPWeb object?

When creating my SharePoint 2010 solutions, I often create a static class that contains helper methods and lists, documents, list items, etc that I use frequently. What would the dangers of putting my ...
7
votes
4answers
4k views

Automatically add pssnapin Microsoft.Sharepoint.Powershell

I am developing in Sharepoint and I like more Windows Powershell than Sharepoint Management Shell. Every time I restart the development machine, I have to run Add-PSSnapin ...
7
votes
4answers
302 views

Options for SharePoint 2010 developer training?

What are my options for solid, relevant and affordable training for SharePoint 2010 development? I am working with a relatively small budget and would also have to do this on my own time, so it would ...
7
votes
3answers
3k views

How to prevent a SharePoint web part from being crawled

We have a custom web part for our SharePoint 2007 farm that calls a very large report (lots of views and stored procs being called) that is used on hundreds of pages on team sites and MySites. We get ...
7
votes
1answer
765 views

When to use VS 2010 vs. SP Designer for development

When do we use Visual Studio 2010 for SharePoint 2010 web part development and when do we stick with Designer? Are there pros/cons? As a noob, it seems that for more robust, customized web parts, ...
7
votes
2answers
695 views

Can a CAML query find all documents that were ever modified by a specific user?

I'm trying to list all documents that were (ever) modified by a specific user, using a CAML query like this one: var query = new CamlQuery{ ViewXml = "<View Scope='Recursive'>" + ...
7
votes
9answers
2k views

Getting Started with Sharepoint 2010 Development with no prior Sharepoint knowledge

My boss wants me to learn Sharepoint 2010 development (and he wants me to learn it now!). I have never done anything with Sharepoint. Where should I start? About Me: I am an Asp.net developer, and ...
7
votes
1answer
154 views

Passing a Kerberos Ticket to a web service

I'm trying to pass a Kerberos ticket onto a webservice through a custom webpart. The webservice is a WCF service, but it is a 3rd party web service that is not claims-aware. The web service doesn't ...
6
votes
12answers
1k views

What resources would you recommend to someone who would like to learn and possibly become a SharePoint Developer?

What resources would you recommend to someone who would like to learn and possibly become a SharePoint Developer?
6
votes
4answers
517 views

What are the benefits of grabbing a list by Guid compared to any other way

I know its always best to access a list by its Guid since it won't ever change, compared to accessing a list by Title or Url, but what are the other benefits of grabbing a list by the Guid? There ...
6
votes
3answers
1k views

“SharePoint is not a database!” article of 2009 - does it still apply for SP 2010 and 2013?

I'm talking about this blog post by Chris Woodill. He mentions the following advantages of modeling data via SQL programming instead of SharePoint's lists: Primary And foreign keys: one of the most ...
6
votes
5answers
9k views

In which situation use SPSecurity.RunWithElevatedPrivileges with superusertoken?

i have given permission only read only to Users Group.so there are not access to see listitem or any list. i have create application page with SPGridview with bind listitem. this page access by this ...
6
votes
4answers
3k views

What SharePoint 2013 Development can be done in Visual Studio 2010?

It looks like the tools for developing SharePoint 2013 customizations are mostly in Visual Studio 2012 and "Napa for Office 365." If you've tried developing solutions for SharePoint 2013 in Visual ...
6
votes
3answers
3k views

Disposal of SPWebs retrieved from SPContext.Current.Site.AllWebs

As there was a minor disagreement on whether SPWebs retrieved from SPContext.Current.Site.AllWebs should be disposed, I thought it would be appropriate to post a new question and discuss it here. I ...
6
votes
2answers
368 views

HTML in SPGroup.Description

I am trying to add a group (SPGroup) programmatically. Everything works fine except for one thing. I would like the group's description to include a link to it's site. Similiar to the look-and-feel in ...
6
votes
2answers
1k views

Download file from a sharepoint site from code behind

I have an Image button in a custom 2010 webpart, on click of that I would like to download a file. Code Used : foreach (string filename in item.Attachments) { attachmentURL = SiteListURL + ...
6
votes
4answers
17k views

Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>

I have a feature. On the FeatureActivated event I am creating a list if it is not there. I also have an EventReceiver that in the elements.xml on the Receivers node has the attribute ListUrl. This is ...
6
votes
1answer
2k views

Attach a file to the list item

I attach file to the list item when it updating and when new item added. Additional condition when item updating - if the file already exists, remove it and replace the new. I receive events ItemAdded ...
6
votes
3answers
333 views

Filter out folders from a user alert against a list

I have created an alert for a user against a list (more specifically, a document library). I want the user to be notified of all changes regarding list items (documents) and not any sub folders. ...
6
votes
3answers
4k views

How to rename title column in Document Library using code?

Everybody loves renaming columns. The title column is a favorite of mine and I can't seem to rename it via code: SPList list = web.Lists.TryGetList("MyList"); Guid guid = new ...
6
votes
1answer
719 views

Obtain Default Content Access Account via PowerShell

As part of farm configuration audit, I need to obtain the current content access account. While I've found several resources for setting the default content access account for search using PowerShell, ...
6
votes
7answers
602 views

Getting started with SharePoint 2010 for SharePoint 2007 Developers

Do you know some quick links that will help a SharePoint 2007 Developers to get started with SharePoint 2010. Let me start with the links I know. General Information on SharePoint 2010 Must watch ...
6
votes
5answers
4k views

How do you remove fields from a custom list in SharePoint that have been added via the 'Add from existing site columns' menu item?

I have a custom list, and I've added a 'Page Image' field by clicking on the 'Add from existing site columns' link on the Settings page for the list. I would now like to remove the field, but clicking ...