Here’s a wierd one. I’m reusing a code base that unfortunately must not be updated. This code makes a call to HttpContext.Current.Request.QueryString. Ideally, I need to push a value into this collection with every request that is made. Is this possible – perhaps in an HTTP Module?
Here’s a wierd one. I’m reusing a code base that unfortunately must not be
Share
Without using reflection, the simplest way to do it would be to use the RewritePath function on the current HttpContext object in order to modify the querystring.
Using an IHttpModule, it might look something like:
Hope this helps!