Sometimes we need to change the UIVersion of sharepoint site on sharepoint 2010 for it looks like sharepoint 2007 site,there are two ways to achieve.

First one ,we can use SharePoint 2010 Management Shell tool,just put the following command:

View Code
1 $myWeb = Get-SPWeb http://YourSiteURL
2 $myWeb.UIVersion = 3
3 $myWeb.UIVersionConfigurationEnabled = $true
4 $myWeb.Update()

Change UIVersion Of SharePoint 2010

The other one,we can use visual studio to run the following code:

1 using (SPSite mySite = new SPSite("http://YourSiteURL"))
2 {
3 using (SPWeb myWeb = mySite.OpenWeb())
4 {
5 myWeb.UIVersion = 3;
6 myWeb.UIVersionConfigurationEnabled = true;
7 myWeb.Update();
8 }
9 }


 

相关文章:

  • 2022-02-22
  • 2021-10-13
  • 2021-10-16
  • 2021-06-11
  • 2022-01-29
  • 2021-05-28
  • 2021-06-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-01-03
  • 2021-09-04
  • 2021-10-14
相关资源
相似解决方案