Return to Snippet

Revision: 46959
at May 28, 2011 00:16 by nickaranz


Initial Code
// setting the current context MUST be done in the constructor and is only valid for Synchronous events
        private HttpContext currentHttpContext = null;

        public EventReceiver1(): base()
        {
            currentHttpContext = HttpContext.Current;
        }

// this in your actual event function
string MyValue = currentHttpContext.Request.QueryString["Parameter"];

Initial URL


Initial Description
only works in async. events. Ending in "ing"

Initial Title
Getting Query String from Event Receiver

Initial Tags
Development, sharepoint

Initial Language
C#