In querying the properties of a list item, I found that returning the value of a people or group field that the value would be returned in the form
1;#George Grainger
Using the code:
properties.ListItem["Staff Member"].ToString();
I've worked around the issue, by splitting into 2 strings, but I was wondering if anyone would know of a way to return the value without the ;#
preceding the desired return value?
Note: I realise I could dig through the current web, list and item to query the fieldValue.User.Name
, however this is somewhat resource expensive, and I was hoping for a "cleaner" way.