Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

Buffering is on by default in IIS 5

Total Hit ( 5334)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


You can speed up ASP by adding the following statement at the beginning of an ASP page:

Response.Buffer = True

This statement must be executed before any HTML text is sent to the client. When buffering is on, ASP sends data to the client browser only when the page has been processed, or when it encounters a Response.Flush statement. This often delivers better overall performance, even though the user might perceive a worse apparent speed, because the browser won't be able to render the HTML until the page has completed its processing.
There are other reasons for enabling buffering. For example, a few methods and properties of th Response object - most notably, the Cookies collection, the AddHeader method, and the Status property - work only if no HTML has been sent to the client, therefore you must enable buffer if you want to use in the middle of the ASP page, when some HTML has been already produced.

Unlike IIS4, buffering is on by default under IIS5. This means that you don't need an explicit Response.Buffer = True statement at the beginning of every ASP page, and that your previous IIS4 application will run faster without any change in the code.

However, there is a gotcha: if you upgrade from IIS4 to IIS5 under Windows 2000, buffering might still be False by default. This means that, for example, if you test your site on your local IIS5 machine and then move it to the production server (another IIS5, but with another default buffer setting) your ASP application might not work as expected. The bottom line is: if you want to be absolutely sure that your ASP application works on any IIS5 installation you should explicitly add a Response.Buffer = True statement.


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.