Sharing the experience search

Search sharing-the-experience.blogspot.com

Thursday, March 24, 2011

get SPUser from SPFieldUser

Wondering why seems puzzling to get SPUser from SPFieldUser? Me too)

SPUser creator = ((SPFieldUserValue)(item.Fields["Created By"]).GetFieldValue(item["Created By"].ToString())).User;
      

No comments:

Post a Comment