I was reading to get some more information about the HttpResponse class. I came across an odd remark though on MSDN.
The following methods of the HttpResponse class are supported only in
postback scenarios and not in asynchronous postback scenarios:BinaryWrite Clear ClearContent ClearHeaders Close End Flush TransmitFile Write WriteFile WriteSubstitution
What exactly does that mean? I rely very heavily on HttpResponse.Write in one of my projects. What exactly is an asynchronous postback scenario?
An async postback occurs when you postback through something like an updatePanel.
The major difference in an async postback is in the render.
Your normal prerender and render logic will not be called.
Only a part of the Page is updated using javascript at the front end.
This means that you cannot return another document, change the http headers, etc.