Search This Blog

Tuesday, August 27, 2013

How to Change UI Version using feature receiver

public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
using(SPWeb myweb = ((SPWeb)properties.Feature.Parent))
{
myweb.UIVersion = 3;//Change it to 4 if you want to get Sharepoint 2010 Look and Feel
myweb.UIVersionConfigurationEnabled= true;
myweb.Update();

}
}

No comments:

Post a Comment