SharePoint 2010 Web Analytics Custom Web part v1.1

Rating: No reviews yet
Downloads: 190
Released: Oct 27, 2014
Updated: Oct 27, 2014 by HarryBern
Dev status: Beta Help Icon

Recommended Download

Application Most Viewed Web Part Solution Package
application, 27K, uploaded Oct 27, 2014 - 190 downloads

Release Notes

The code that retrieves analytics data now runs under SPSecurity.RunWithElevatedPrivileges.
SPSecurity.RunWithElevatedPrivileges(() =>
{
using (SPSite site = new SPSite(siteURL))
{
using (SPWeb web = site.OpenWeb(SPContext.Current.Web.ID))
{
AggregationContext aggregationContext = null;
if (Scope.ToString() == "Site")
aggregationContext = AggregationContext.GetContext(site);
else
aggregationContext = AggregationContext.GetContext(web);

ExecuteQuery(aggregationContext, siteURL);
}
}
});

Reviews for this release

No reviews yet for this release.