Tuesday, February 21, 2012

Programmatically applying themes


//Open site collection object
using (SPSite mySite = new SPSite("http://SiteUrl"))
{

// Open site
using (SPWeb oWeb= mySite .OpenWeb())
{
oWeb.ApplyTheme("<theme to be applied>");
oWeb.Update();
}
}

No comments:


A sales engineer is someone who promise you a bridge, even when there's no river.