Tuesday 19 February 2008

Set "Show Subsites" option in Sharepoint Modify Navigation to False

Programatically set the "Show Subsites" checkbox in the Modify navigation section of a sharepoint site to false using the code below

spweb.AllProperties["__IncludeSubSitesInNavigation"] = "False";
spweb.Update();