string DURL = "http://myURL/";
using (SPSite site = new SPSite(DURL))
{
using (SPWeb web = site.OpenWeb())
{
web.AllowUnsafeUpdates = true;
SPList listLook = web .Lists ["Posts"];
SPList list = web.Lists["Comments"];
SPListItem Item1 = list.Items.Add();
Item1["Title"] = "My testing title";
Item1.Fields["Post Id"].ReadOnlyField = false;
Item1["Post Id"] = 1;
Item1.Update();
Item1.Fields["Post Title"].ReadOnlyField = true;
Item1.Fields["Post Id"].ReadOnlyField = true;
}
}
ASKER
Microsoft Sharepoint is a software platform and family of software products used for collaboration and web publishing combined. These capabilities include developing web sites, portals, intranets, content management systems, search engines, wikis, blogs, and other tools for business intelligence and collaboration. SharePoint has a Microsoft Office-like interface, and it is closely integrated with the Office suite.
TRUSTED BY
check the changes
Open in new window
but I think you are going at this the wrong way..
in any case ,let me know if that worked.