"Avoid the ""AccessDenied"" message when you try to set the Quota for a Site in Sharepoint

By [)ia6l0 iii

You would have to first allow the updates. You can use the AllowUnsafeUpdates property for this.

SPContext.Current.Web.AllowUnsafeUpdates = true;
SPContext.Current.Site.Quota = SPWebService.ContentService.QuotaTemplates[""quota""];
SPContext.Current.Web.AllowUnsafeUpdates = false;

"Avoid the ""AccessDenied"" message when you try to set the Quota for a Site in Sharepoint  (319 Views)
Create New Account