Running on a list with 4,000 items. Option 1 is on average 1 second slower than Option 2.
using (SPSite currentSite = new SPSite(SPContext.Current.Site.ID)) 128 more words
We wanted to create a notification banner on top of every page in a SharePoint 2010 site collection like this:
You could modify the master page for each site but that very cumbersome. 483 more words
This application does the following: