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

learn more… | top users | synonyms (3)

42
votes
61answers
7k 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!
33
votes
6answers
20k 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" ...
30
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 ...
28
votes
2answers
7k 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.
19
votes
3answers
5k 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 ...
18
votes
4answers
359 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 ...
18
votes
4answers
2k 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
4k 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?
13
votes
3answers
7k 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. ...
12
votes
4answers
7k 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 ...
12
votes
5answers
12k 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 = ...
12
votes
9answers
9k 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 ...
12
votes
2answers
15k 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
2answers
2k 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
1k 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
9answers
6k 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 ...
10
votes
1answer
2k views

Manage trust/add certificate

I try to add a certificate under "central administration>security>manage trust" but I always get the following error: The Root Certificate that was just selected is invalid. This may be ...
10
votes
1answer
936 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
6answers
2k 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
5answers
597 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 ...
9
votes
9answers
11k 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) ...
9
votes
1answer
212 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
4answers
18k views

Get Site Collection full URL using javascript

I want to get the URL for my site collection. One way I thought I could do it was using the window.location in javascript and getting it that way. I know that you can use ECMA script and the client ...
8
votes
4answers
5k 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 ...
8
votes
1answer
2k 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
327 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
118 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
3answers
2k 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 ...
7
votes
5answers
10k 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 ...
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
4k 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
623 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
1k 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
5k 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
307 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
4answers
20k 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 ...
7
votes
3answers
394 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. ...
7
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 ...
7
votes
3answers
1k views

Moving a site to a different site collection

I am looking for a C# script that will move a site with all permissions and content to another site collection. Google isn't helping me or maybe i dont know what exactly to look for. e.g. I have a ...
7
votes
2answers
2k views

What is the best practice for securely storing a connection string in SharePoint?

I'm writing an application page in SharePoint and I want to securely store the connection string. I've used a variety of methods before but they all seem a little "suspect". What is the recommended ...
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
820 views

Client Object Model SystemUpdate

I need to have the SystemUpdate functionality from the Client Object Model. Is there any way I can do it since the ListItem.SystemUpdate() does not exist? Another solution would be to disable the ...
7
votes
1answer
846 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
849 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
2k views

Programmatically add quick launch link to a modal dialog box

I have implemented a feature that once activated adds a heading called Home, and a link underneath to a NewForm.aspx like such: // Add Home node var mainListsNode = new SPNavigationNode("Home", ...
7
votes
2answers
932 views

Anonymous access: Add an Item to List without allowing to View the List

I'm creating a 'Contact Us' webpart with form to allow anonymous user to send a message which will be added to a SharePoint List. However I cannot grant the anonymous user the permission to Add ...
7
votes
1answer
527 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 ...
7
votes
1answer
449 views

Compressing Files in a Document Library with Server-side Code

Anyone know of a way, that within the context of server-side code (like in the callback of a WebPart) to compress a set of given files in a document library, placing the resulting compressed file back ...