Sometime we modify item via codebehind with a scheduler,.... but we don't want to update the standard field "updated" and "updated by" to not falsify the value in there.
For this case I found a intersting option in the EditContext method. Set the second parameter to false if you want to avoid updating statics.
For this case I found a intersting option in the EditContext method. Set the second parameter to false if you want to avoid updating statics.
- using (new EditContext(item, false, false))
- {
- item["Title"] = "new Title";
- }
Comments
Post a Comment
a new comment