【Sharepoint控件】MOSS查阅项赋值

SPList typeList = web.Lists["类别" ];
                            foreach (SPListItem type in typeList.Items)
                            {
                                if (type.Name == PostCategory.SelectedValue)
                                {
                                    spi[ "PostCategory"] = new SPFieldLookupValue(type.ID, type.Name);//重点
                                }
                            }
原文地址:https://www.cnblogs.com/yixiaozi/p/3844141.html