Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

update the modified by and created by columns in eventreceiver when running under runwithelevatedprivilges

$
0
0

hi, 

 i want to get the current logged in user name in my itemupdated() event handler.

how to fetch the user login name -  for modified by and created  by  in my doc lib columns[metadata] ?. 

this is required as my code is running under the spsecurity.runwithelevatedprivilges(delegate() { }); and i wont be getting the

modified by and created by since code would be in app pool identity


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>