Blogger :
MSDN Blogs
All posts :
All posts by MSDN Blogs
Category :
SAPscript
Blogged date : 2006 Dec 23
Sometimes we may see a slow running ASP pages which may be due to the buffering enabled in the ASP page itself or in the IIS metabase property.
Now comes the question what this buffering is all about? Well, you can use a property of the Response object, Buffer to indicate this buffering. This property tells whether to buffer the page output. If this property is enabled (set to TRUE), the server won’t send any response to the client until all the server side scripts on the ASP page are processed, or until the Response.Flush or Response.End method is called. If it is set to FALSE, then the server sends the output to the client as and when it is processed.
Syntax
Response.Buffer = [TRUE or FALSE]
When you turn on the Response.Buffer, your page may take a little more time to get loaded in the browser. So, if your page runs very slow and you see this property enabled, try disabling this property if you don’t require this functionality in your code.
If you wonder how to enable/disable buffering on the web server level, there is a Metabase property you can set, AspBufferingOn. This is also a boolean property which behaves the same way as Response.Buffer.
Here are the official articles for them:
http://msdn2.microsoft.com/en-us/library/ms526001.aspx
http://msdn2.microsoft.com/en-us/library/ms524344.aspx
Happy Learning!