Posts

Showing posts from January, 2010

Credential while creating site in Share Point Portal

Call SPSecurity.CodeToRunElevated for executing CreateSite() method.This statement makes credential scope over Share Point server. exeample: SPSecurity.CodeToRunElevated elevatedGetSitesAndGroups = new SPSecurity.CodeToRunElevated(method which owns CreateSite method); SPSecurity.RunWithElevatedPrivileges(elevatedGetSitesAndGroups);