Hi
I am trying to set the value of a field on a ListItem in an event receiver but its not working
All i am doing during the event is
properties.AfterProperties[<field internal name>] = 1;
No errors are thrown but the the field i'm setting does not change. I have also tried
properties.ListItem[<field internal name>] = 1;
properties.ListItem.Update();
Have also tried SystemUpdate();
I know i am meant to be setting the afterproperties but think i am missing an obvious step.
Thanks