Hello,
Have you allready tried the Response.Filter?
Here is an example of using it (used to do modifications to the HTML source that it will be XHTML-Compilant):
http://aspnetresources.com/articles/HttpFilters[
^]
You can attach the filter anywhere you want in the page-cycle. If you want to process each request with the filter, you can attach the filter in the global.asax Application_BeginRequest event. If you do so, you need to check that the content-type is 'text/html'.
Hope this helps.
Best regards,
Stops