This may be a silly question, but how do we access the IIS output stream from a managed module as opposed to the ASP.NET output stream?
In one of my apps I have a dead simple module that writes a message at the bottom of each page in PostRequestHandlerExecute(). If I run this in the Integrated Pipeline this code works fine with any managed code pages/requests as I would expect.
However, if I fire against say a static HTML document, the message is not written.
In debugging I can see that the code gets hit but it doesn't do anything
private void application_PostRequestHandlerExecute(object sender, EventArgs e)
{
HttpApplication app = (HttpApplication) sender;
// *** Must make sure we don't add this to data responses!!!
if (app.Context.Response.ContentType.ToLower() == "text/html")
app.Context.Response.Write(SharewareMessage);
}
Now I suppose that when I access a static page here I won't have a Response object that is writing output to the core IIS output stream and that's why this isn't working.
So, how would I do this with non-managed content?
+++ Rick ---