I'm trying to spoof a System.Web.UI.Page in my httphandler, and while this works to some degree.. the "page" needs some added query strings to make this complete. Note below that I'm passing in a virtual path to the Page instance. Can anyone help? I tried adding the query strings to the p.Request object after the Page instance has been instantitated, but I believe the error is -- "Request is not available in this context"
Page p = (Page)BuildManager.CreateInstanceFromVirtualPath(virtualUrl, typeof(Page));
IHttpHandler handler = p;
View Complete Post