How-to: Add GZip Compression to any ASP.NET Page

1. Open Global.asax.cs in Visual Studio.
2. In Application_BeginRequest, add the following line:
NETXPF.Library.IOUtils.GZipEncodePage(HttpContext.Current);

NOTE: 'GZipEncodePage' should always be called before anything is written to the Response stream.

Last edited Mar 17, 2010 at 1:47 AM by dacris, version 2

Comments

No comments yet.