title: Creating an Excel file with multiple sheets
body: <p>Do you make this code to create an Excel spreadsheet with two tabs? This only does one presently.</p>
  
  <pre><code>string attachment = string.Empty;
  StringWriter sw = new StringWriter();
  HtmlTextWriter htw = new HtmlTextWriter(sw);
  
  HtmlForm frm = new HtmlForm();
  frm.Attributes["runat"] = "server";
  
  attachment = "attachment; filename=MyFile.xls";
  GridView1.Parent.Controls.Add(frm);
  frm.Controls.Add(GridView1);
  
  Response.ClearContent();
  Response.AddHeader("content-disposition", attachment);
  Response.ContentType = "application/ms-excel";
  
  frm.RenderControl(htw);
  
  Response.Write(sw.ToString());
  
  Response.End();
  </code></pre>