Sunday, March 08, 2009

Cross SharePoint Permission When Anonymouse Allowed

When Working With Anonymouse You Some Proplems in Permission The RunWithElevatedPrivileges Method Allow You to Executes a specified Code or method with Full Control rights even if the user does not otherwise have Full Control

SPSecurity.RunWithElevatedPrivileges(delegate()
{

//You Must Create SPSite Object and SPWeb Object Here

// Add Your Code Here Like Add Item to SharePoint List

});

2 comments: