在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
============================================ SPWeb site = SPControl.GetContextWeb(Context); SPListItem item = items.Add(); item["Field_1"] = OneValue; item["Field_2"] = TwoValue; item.Update();
SPWeb site = SPControl.GetContextWeb(Context); SPListItemCollection items = site.Lists["ListName"].Items; items[0].Delete();
using Microsoft.SharePoint; if( htmlInputFile1.PostedFile != null ) byte[] buffer = new bytes[stream.Length]; stream.Read(buffer, 0, (int) stream.Length); stream.Close(); site.Files.Add(destinationURL, buffer); 查询记录及更新数据 SPWeb web = new SPSite("http://nick").OpenWeb("test"); //Open website web.AllowUnsafeUpdates = true; SPList list = web.Lists["ListName"]; SPQuery query = new SPQuery(); query.Query = "<Where>"+ query.RowLimit = 10; //查询 listItem.Update(); addlist["Filed_1"] = TextBox1.Text.ToString(); addlist.Update(); |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论