locked
Force ASP.NET to write entire response at once RRS feed

  • Question

  • User-2123273079 posted

    Hello everyone,

    I was wondering if there is any config setting or any other way to force the response to be written all at once instead of it being written in multiple packets??

    The problem is I am using a response filter to edit anchor href's and the html parser (HtmlAgilityPack) strips out the malformed HTML when the framework writes to the response stream multiple times, so enforcing an all at once write would solve this headache.

    Is is possible??


    Thanks,

    Sean

    Thursday, March 18, 2010 5:15 PM

Answers

  • User-2123273079 posted

    found a solution - move the logic to the Stream.Close() method, so that you have the entire html markup. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 19, 2010 7:04 PM