To get the value for Person or Group Column Type after removing the special characters from it, use this function
private string GetValue(SPListItem item, SPField gpField)
{
string currentValue = item[gpField.Title].ToString();
SPFieldLookup field = (SPFieldLookup)gpField;
SPFieldLookupValue fieldValue = (SPFieldLookupValue)field.GetFieldValue(currentValue);
return fieldValue.LookupValue;
}
to call it
string strName = GetValue(spListItem, spListItem.Fields["fieldName"]);
Bye..
Filed under: MOSS, SharePoint Tagged: SharePoint

Like
Report
*This post is locked for comments