Renaming Items

Renaming Items

C# Web Control Code

Sitecore.Data.Database db = Sitecore.Configuration.Factory.GetDatabase("SitecoreDB");

Sitecore.Data.Items.Item item = db.GetItem("itempath");

using (new SecurityDisabler())

      {

        using (new EditContext(item))

        {

             item.Name = "newname";

        }

      }