I want to change the title of the subsites in SharePoint using c#. Give me suggestion.
1 Answer
Here is the sample code:
using (SPSite site = new SPSite("http://sp2010:90"))
{
foreach (SPWeb web in site.AllWebs)
{
using (web)
{
web.Title = "New Title";
web.Update();
}
}
}
-
I also want to edit Url but if I am writing web.Url it's tell me Read Only then what to do..– RiyaAug 5, 2013 at 11:58
-
-
-
-