Adding Versions

Adding Versions

C# Web Control Code

Sitecore.Data.Items.Item item = this.DataItem.Versions.AddVersion();

item. ItemEditing.BeginEdit();

      //TODO

item. ItemEditing.EndEdit();