சென்னை

Programmatically Read List & View Content in SharePoint

I got a task to work on developing the windows application which will fetch the List View data from sharepoint and process the data in win forms app.

Previously i used to fetch the data using Lists.asmx,views.asmx.

Now i came to know there is other way to fetch the data from List View.

தொடரியல்: https://myserver.com/_vti_bin/owssvr.dll?Cmd=Display&List={பட்டியலில் […]

Programmatically Update List Content in SharePoint

அதிக Devs,

The Below is the Sample Code to update the Sharepoint list content programmatically by using SharePoint Object Model.

SPSite Site = new SPSite(“http://லோக்கல் ஹோஸ்ட்:21000”); SPWeb Web = Site.OpenWeb(); SPList List = Web.Lists[“Address Book”]; SPListItem ListItem = List.GetItemById(0);

string FullName = string.Empty;

FullName = ListItem[“FIRSTNAME”].ToString() + ListItem[“LASTNAME”].ToString(); SPListItem[“FullName”] = FullName; ListItem.Update();