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....
Member
2 Points
5 Posts
Write HTTPModule to replace content
Oct 13, 2011 06:29 AM|Mizokunimito|LINK
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
Member
2 Points
5 Posts
Re: Write HTTPModule to replace content
Oct 13, 2011 06:44 AM|Mizokunimito|LINK
I've found from myself.
You can handle overridable Close method to incercept when a resource writing is terminated.
Thanks anyway.