SPFieldLookup myField = myItem[i].Fields["LookupFieldName"] as SPFieldLookup;
SPFieldLookupValue myLookupValue = myField.GetFieldValue(myItem[i]["LookupFieldName"].ToString()) as SPFieldLookupValue;
string LookupFieldValue = myLookupValue.LookupValue;
No comments:
Post a Comment