SharePoint Dragons

Nikander & Margriet on SharePoint

Access the querystring in an ItemAdded event receiver

You can’t access the HttpContext within an ItemAdded event receiver, which makes sense, as there is none anymore. If you want to access the querystring in it, you can retrieve it in the ItemAdding event and pass it to the ItemAdded event via the HttpRuntime cache:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: