title: Returning a downloadable file using a stream in asp.net web forms
body: <p>In asp.net MVC I can do something like the following which will open a stream:</p>
  
  <pre><code> Stream strm1 = GenerateReport(Id);
  
  return File(strm1, 
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
              "Report_" + reportId.ToString() + ".xlsx");
  </code></pre>
  
  <p>Notice how I am passing strm1 which is a stream. I can then name it Report_+ ...xlsx like the example above shows.</p>
  
  <p>Is there a similar way to do this with asp.net web forms using c#.</p>