Thank you for the hint, Brock, and sorry for the late reply.
The problem of this approach is, that it will always intercept uncached
data and therefore imply quiet a performance hit.
However, I implemented an intercepting filter based on this approach
(here is a good article to get started on the topic:
http://www.awprofessional.com/articl...&seqNum=3&rl=1)
and it works... so so.
One problem is, that one should actually manipulate the byte array
passed to the filter directly to get good performance
(Buffer.Blockcopy() and the like).
Another problem is, that the framework sends chunks of data to the
write method of the filter and it looks as if it is using "good" chunks
(i.e. the framework splits on </p> positions and the like) but it may
happen that one wants to replace data right at the edge between two
chunks and then a more complicated overflow method needs to be
implemented.
I am OK with my intercepting filter currently, but wanted to check if
someone know an alternative approach or a tailor made component for
this.
Cheers
DC