I usually adopt a custom simple HttpModule to compress programmatically the page content in my asp.net applications.
Private Sub CompressRequest()
If ((String.IsNullOrEmpty(HttpContext.Current.Request.Headers("Accept-encoding")) = False) AndAlso _
(HttpContext.Current.Request.Headers("Accept-encoding").Contains("gzip") = True)) Then
[...]
Read the complete post at http://feeds.feedburner.com/~r/AlkampferEng/~3/253791314/