Ads

Monday, 1 July 2013

C# code to get User From list item Modified by Field Programatically

SPFieldUser userField = (SPFieldUser)oSourceListItem.Fields.GetField("Modified By");
                                                        SPFieldUserValue fieldValue = (SPFieldUserValue)userField.GetFieldValue(oSourceListItem["Modified By"].ToString());

No comments:

Post a Comment

Ads