【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);//重点

                                }

                            }

 

你可能感兴趣的:(SharePoint)