SPSecurity.RunWithElevatedPrivileges(delegate() { string site_Str = "http://enk-msos-soft3/"; SPSite oSiteCollection = new SPSite(site_Str); // SPSite oSiteCollection = new SPSite("http://enk-msos-soft3/"); SPWeb oWebsiteRoot = oSiteCollection.OpenWeb(); oWebsiteRoot.AllowUnsafeUpdates = true; SPList ListCompliance = oWebsiteRoot.Lists["Employment Activity"]; SPQuery queryfilteremp = new SPQuery(); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)