I have a SharePoint site page with a document library web part on it, once a document is uploaded to this library, some of the library fields need to be updated according to a parameter of the page url.
I tried doing this with Event Receiver
binding on the library, only to find that I cannot get the page url, or rather the parameter, in the Event Receiver. Then Session
occurred to my mind, but after asking around and searching a lot, I can only get HttpContext
in itemAdding
but not itemAdded
, what's worse, HttpContext.Current.Session
always give me nulll
and I'm sure I have put some value into session earlier in somewhere else.
Can someone shed some light on this, any help or advise is deeply appreciated.