title: How to Compress an ASPX Page?
body: <p>I followed the sample from here to compress my page:</p>
  
  <p><a href="http://www.codeproject.com/KB/aspnet/Aspx_Compression.aspx" rel="nofollow">http://www.codeproject.com/KB/aspnet/Aspx_Compression.aspx</a></p>
  
  <p>But the result I get is a page full of odd characters:</p>
  
  <p>���<code>I�%&amp;/m�{J�J��t��</code>$ؐ@�������iG#)�*��eVe]f@�흼��{����{����;�N'</p>
  
  <p>Not sure what's wrong with that code?</p>
  
  <p>I tried the code both in Page_Load and Page_Render events. </p>
  
  <p>Any idea?</p>
  
  <p>Thanks,</p>
  
  <p>Update:
  just an update; my code was wrong! debugged it with FireBug/Net tab and it was revealed that a wrong Header was added.</p>