0
votes
1answer
64 views

Coding best practice display name vs internal name in itemUpdated event receiver

In an itemupdated event receiver, when referring to list fields, is it better to use the field's internal name, or its display name? Is there a clear guideline or best practice, or is this a ...
10
votes
2answers
773 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 ...
0
votes
2answers
89 views

Sharepoint Development Process Best Practices

I would like to ask some simple questions regarding the best practices of Sharepoint 2010 development process. 1) I am supposed to maintain and add new sites to an already installed Sharepoint site. ...
2
votes
2answers
1k views

Best way of getting SPWeb in Event Receiver [Best Practices]

what would be the best way of getting SPWeb and List in context below, specially when list title can be different for different cultural websites, private bool ...
1
vote
1answer
4k views

How to run a popup window from code behind in web Part writen in C#

I must run a popup warning when somebody exceeds some value. I tried a SharePoint Modal Popup using JavaScript, but I don't know how to run something from code behind with JavaScript and a SharePoint ...
3
votes
2answers
1k views

Use SPQuery.RowLimit also on large lists with small query results?

I frequently read one should use RowLimit on SPQuerys on a large list, especially with more than 2000 items. Best Practices: Common Coding Issues When Using the SharePoint Object Model: An ...
1
vote
1answer
26 views

Setting up sites with lists and custom content types

I am creating a proof of concept at work. It will be creating a web applciation with a site collection in it. The site collection will have 1 or 2 custom content types and a few lists set up. I will ...
1
vote
2answers
942 views

SharePoint 2010 - Best practices: how to handle assemblies [Discussion]

There is a discussion which has been going on for serveral years when programming for SharePoint. In Visual Studio you can add a SharePoint solution, which will be converted to a .wsp file to deploy. ...
2
votes
0answers
369 views

Using SharePoint for an appraisal/360 process

We are thinking of using SharePoint 2010 for an appraisal/360 process. The workflow is simple. HR Create appraisal for users User fills it in Manager fills it in User accepts appraisal Manager ...
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 ...
0
votes
2answers
78 views

Sharepoint backups - Development image

I'm looking into creating an image of a SP 2010 development environment. I would like to avoid operations like restoring the image of the virtual machine (the environment is on a virtual PC) and opt ...
5
votes
3answers
197 views

Things to “get right” to succesfully develop Sharepoint solutions

Lets face it, SharePoint 2010 is a big ecosystem. You need to know the GUI, the administration options, the data model, have programming skills, know the API, know how it works internally etc etc. I, ...
0
votes
1answer
150 views

Setting SPWeb.AllProperties on WebPart Install

I have a WebPart where I need to set a custom property in SPWeb.AllProperties. How can I on install check to see if a property is set? If it is not set I want to set it. Or is it best just to do this ...
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, ...
1
vote
3answers
1k views

Storing custom properties for a SharePoint Site

Let's say you are building a Project Management solution where each Project equals one site (SPWeb object). Each project has it's properties like: Project Manager, Budget, Customer, Description, ...
2
votes
4answers
532 views

Cache SP Objects or custom class?

Just wanted to see what the consensus on this one is… If you make a call to the OM to return a SP object e.g. SPListItemCollection, and then want to cache the results (to improve subsequent ...
2
votes
2answers
1k views

SharePoint Custom Module Development and Deployment

Good Day, We're working on custom module (Information Management System) for SharePoint. The project file of this module is a Class Library which contains User Controls. The User Controls was based ...
1
vote
0answers
729 views

What is the best practice handling “Save Conflict” SPException? [closed]

What is the best way to work around the SPException thrown when updating an SPListItem recently edited by another process? Is this a good approach? What can be done to not to lose the update data? ...
4
votes
3answers
774 views

Unit testing web parts

I've read the articles from Andrew Woodward (21Apps) trying to get started with unit testing on WSS, but when I try something more advanced, like Webpart connections, I don't know how to start ...