title: Response.End() throwing an Error
body: <p>In my application I need to download a file, So I am using this piece of code:</p>
  
  <pre><code> Response.ContentType = "application/octet-stream";                    
   Response.AppendHeader("Content-Disposition", "attachment; filename =" + strFileName + ".xls");
   Response.TransmitFile(strFilePath);
   Response.End();
  </code></pre>
  
  <p>at <code>Response.End()</code> i am getting an error <code>ThreadAbortException</code></p>
  
  <p>To aviod this error I am trying to use httpApplication.CompleteRequest(),
  but i m not able to use this too.</p>
  
  <p>The code with httpApplication.CompleteRequest() is below,</p>
  
  <pre><code>Response.ContentType = "application/octet-stream";
  Response.AppendHeader("Content-Disposition", "attachment; filename =" + strFileName + ".xls");
  Response.TransmitFile(strFilePath);
  HttpApplication.CompleteRequest();
  </code></pre>
  
  <p>I m getting this error when i m using HttpApplication.CompleteRequest() </p>
  
  <pre><code>An object reference is required for the non-static field, method, or property 'System.Web.HttpApplication.CompleteRequest()'
  </code></pre>
  
  <p>I hope i m able to make my doubt clear...
  help me out....</p>