Difference between Response.End and Response.flush

Posted by Sirish79 under ASP.NET on 4/13/2009 | Views : 16810 | Status : [Member] | Replies : 2
what is the difference between Response.End and Response.flush?




Responses

Posted by: Majith on: 4/13/2009 [Member] Starter

Up
0
Down
Sirish,

The Response.End method can perform the Web server to stop processing and return the current o/p. The remaining process will stopped.

The Flush method sends buffered output immediately. But we have to set Response.Buffer Property to TRUE.



Sirish79, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Neeks on: 4/14/2009 [Member] Bronze

Up
0
Down
Response.End()
1) It will stop the page execution/rendering at that point. No code following It will be run.
2) The response is terminated at that point with no further output added to the stream.
Response.Flush()
It will send any remaining response items to the page.

Sirish79, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response