Last post Jan 21, 2010 08:00 AM by gopalanmani
Jan 20, 2010 01:38 PM|salmanfarrukh100|LINK
can any1 explain me what is the difference b/w Response.buffer and response.flush.i have read some tutorials but still not clear.also let me know the pros and cons.
Jan 20, 2010 02:05 PM|niksv|LINK
Respence.Buffer method can be used to specify the current output should be buffered or not. when the buffering is set true, the page will not send output to the client until the scripts on the page has been processing or flush method is call.Response.flush method is used to send buffered output immediatly. when the response.buffer is set true.
Jan 21, 2010 08:00 AM|gopalanmani|LINK
the Response object sends output to the client browser. You can use the Response.Buffer
property to indicate whether the page output is buffered. If buffered, all scripts on the page will finish processing unless you specifically call either the Flush or End method. You can set the buffer in IIS or in code using the Buffer property.
If the Response.Buffer property is set to True, the Flush method immediately sends all current buffered page content to the client.
Response.Flush method immediately sends any buffered response to the client. If Response.buffer is set to false then this method has no effect.