A "best practice" is a method or process that practitioners recognize (usually through experience and research) as being more effective at getting the job done than other methods (or processes).

learn more… | top users | synonyms

24
votes
1answer
15k views

Using SPContext.Current or using static URL

There are multiple ways to work in the SP object model. The starting point for instantiating objects looks different when you look at different developers. Many times I see people doing this: SPList ...
24
votes
7answers
5k views

List of best practices on structuring SharePoint 2010 solutions

I am looking for good guidance on how to structure a SharePoint Solution including: Visual Studio Project Structure Features (how to separate features) Namespaces When to use multiple project ...
10
votes
3answers
5k views

Cross Site Collection Navigation

We are using SharePoint for our Intranet. We will have a site collection for the Intranet. Then a site collection for each department in the business. I.E. HR, IT, Finance. We are creating a custom ...
6
votes
3answers
3k views

Structure of SharePoint Solution

Are their any best practices with respect to how to structure a SharePoint solution? For example we are going to develop several workflows, these will use content types and list definitions. Should ...
7
votes
10answers
4k views

When to use Custom Site Definitions… and not

Its an old battle between ITpro and developer. ITpros hate them due to upgrade issues, devs like the freedom it gives them without having to do house cleaning with feature stapling. What is your ...
11
votes
4answers
4k views

Best way to Impersonate in SharePoint

So far, I am aware of below 3 ways of performing impersonation in a SharePoint web part or page : Using Win32 API [DllImport("advapi32.dll", SetLastError=true)] public static extern bool ...
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, ...
7
votes
5answers
3k views

Best practices for building a SharePoint Extranet

What are the best practices when it comes to building a SharePoint Extranet? Any good resources out there? One question that I am particularly looking for some thoughts on is how to best create a ...
6
votes
5answers
1k views

What is the best practice for redirecting users when sites are being upgraded?

We have an upgrade to an application coming up which requires a site collection to be deleted and recreated. In terms of managing the existing users experience during upgrade what would be the best ...
5
votes
5answers
2k views

Saving application settings in a SharePoint application best practices

What are the best practices for saving application settings in a Sharepoint application? Would anyone save the settings in the web.config's appsettings? What about saving them in a SharePoint list? ...
13
votes
1answer
2k views

Is Calling base.ItemUpdating(properties); necessary?

In an event receiver, is it necessary to call base.ItemAdding(properties);, base.ItemUpdating(properties);, etc. at the beginning of your event handler? I've seen people arguing that it isn't ...
19
votes
5answers
1k views

Organizing WebParts in Visual Studio - Best Practices

My team is responsible for maintaining a SharePoint 2010 site that was developed by another group. This maintenance includes updates to existing web parts (approximately 20). Currently, all of these ...
3
votes
1answer
245 views

Best Practice to handle items modification in SharePoint 2007

From my understanding, there is no checkout function inside a SharePoint 2007 List. So, what is the best practice that SharePoint Professionals and Expert do to make sure that a item of a SharePoint ...
7
votes
4answers
3k views

URL Redirects (301/302) for Vanity/Friendly URLs

With Microsoft providing zero support when doing URL rewriting, what is my best approach for providing URL redirects? I'm not too familiar with the topic. The approach I've seen (a solution from a ...
2
votes
2answers
705 views

(De)Commission SharePoint Database Servers

In our SharePoint Farm, We are running with 2 Database Servers and on which we have 20+ Databases.Now, due to some issues we would like to decommission the existing database servers and commission 2 ...
1
vote
1answer
2k views

PowerShell code to add/remove, install/uninstall and enable/deactivate feature at Web, Site Collection, Web Application and Farm scope

Please can you give me the best practice PowerShell code to:- A. Add, install and enable feature at -Web -Site Collection -Web Application -Farm scope B. Deactivate, Uninstall and Remove ...
1
vote
2answers
2k views

How may document libraries are recommended for a site?

I have a document imaging solution that will have a document library for each weekday for scanned in documents. I know that it is recommended not to exceed 2000 items in a document library. Is ...
1
vote
4answers
484 views

SharePoint 2007 Antivirus Protection

What antivirus products have you used in SharePoint 2007 (WSS v3 and MOSS 2007) implementations? I've had quite a bit of experience with Forefront Security for SharePoint and its my default ...
0
votes
1answer
127 views

What is difference between SPSite.Url and SPSite.RootWeb.Url

What is difference between: SPSite.Url SPSite.RootWeb.Url If both are same, Which is considered to be good practice?
0
votes
2answers
2k views

How should I set up my database instances for multiple SP2010 installs?

I'm setting up three SharePoint instances. We have a single database instance (DB\SP2010) that will hold all the databases for these three SP instances. Will this be overly confusing? Is there some ...
0
votes
2answers
518 views

Sharepoint 2010 - Related fields in dropdowns. How to?

In my UI I have a dropdown which contains some values: A, B, C. There is also another dropdown in the page whose values depend on the selected value in the first combo. If I select A in the first ...