locked
Write HTTPModule to replace content RRS feed

  • Question

  • User-1526577255 posted

    Hi,

    I write a module to replace some stuff on different resources (.aspx,css,js and so on), something like that http://aspnetresources.com/articles/HttpFilters

    Basically I rewrite some url in a different form, it works fine in the most situations, but since the re-write process is buffered some url are broken halfway between two buffers.

    In the link the author has solved the problem appending buffer on StringBuilder and looking for ASPx eof that of course is rappresents by "</html>".

    In my case working with different resource type I can't make the same approach.

    So any suggestion is widely appreciated, or some hack too, for example how to increase the buffer size....

    Thanks

     

    Regards

     

     

     

    Thursday, October 13, 2011 6:29 AM

Answers

  • User-1526577255 posted

    I've found from myself.

    You can handle overridable Close method to incercept when a resource writing is terminated.

    Thanks anyway.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, October 13, 2011 6:44 AM