how to get sharepoint lookup value

 

                SPFieldLookup lookUp1 = properties.ListItem.ParentList.Fields.GetField("Leave_x0020_Type") as SPFieldLookup;
                    SPFieldLookupValue lookUpValue1 = lookUp1.GetFieldValue(properties.ListItem["Leave_x0020_Type"].ToString()) as SPFieldLookupValue;
                    formattedValue = lookUpValue1.LookupValue;

 

posted @ 2013-10-09 10:44  zyip  阅读(175)  评论(0编辑  收藏  举报