title: System.Web.HttpException: Response is not available in this context error
body: <p>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
  
  <p>Exception Details: System.Web.HttpException: Response is not available in this context.</p>
  
  <pre><code>Source Error: 
  
  
  Line 10:    public void Download(string filename)
  Line 11:    {
  Line 12:         Response.ContentType = "application/exe";
  Line 13:         Response.AppendHeader("Content-Disposition", filename);
  Line 14:         Response.TransmitFile(Server.MapPath("~/Resources/bb.exe"));
  </code></pre>
  
  <p>I am having this method inside a class, i call this method when I click a button</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  
  public class Common: System.Web.UI.Page
  {
  }
  </code></pre>
  
  <p>Where am I going wrong</p>