title: Issue when trying to download file using Update Panel
body: <p>I checked my browser isn't blocking any popups but I seem to have a error in my code which I can't seem to figure out whats the problem</p>
  
  <pre><code>    protected void btnDownload_Click(object sender, EventArgs e)
      {
          var context = new HMangInternationalContext("HMangInternational");
          var id = Convert.ToInt32((sender as Button).CommandArgument);
          var song = context.AlbumEntries.Where(x =&gt; x.ID == id).FirstOrDefault();
          if (song != null)
          {
              Response.Clear();
              Response.AddHeader("Content-type", "application/octet-stream");
              Response.AddHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(song.FileName));
              Response.BinaryWrite(song.Data);
              Response.End();
              udpFiles.Update();
          }
      }
  </code></pre>
  
  <p>I also tried a version where the size was included but that didn't work either, its like a silent discard, does anyone maybe see my error in my code ?</p>
  
  <p>Here is my Asp.net Code (this works)</p>
  
  <pre><code>&lt;asp:UpdatePanel runat="server" ID="udpFiles"&gt;
      &lt;Triggers&gt;
          &lt;asp:PostBackTrigger ControlID="gdvSongs" /&gt;
      &lt;/Triggers&gt;
      &lt;ContentTemplate&gt;
          &lt;h1 class="hmang-page-header"&gt;TRACKS&lt;asp:Button runat="server" Text="Add New Track" OnClientClick="Show();" ID="btnAdd" Visible="false" class="btn btn-primary set-right"&gt;&lt;/asp:Button&gt;&lt;/h1&gt;
          &lt;asp:GridView ID="gdvSongs" runat="server" AutoGenerateColumns="false" CssClass="table table-dark table-condensed table-bordered"&gt;
              &lt;Columns&gt;
                  &lt;asp:TemplateField&gt;
                      &lt;HeaderTemplate&gt;
                          Track Name
                      &lt;/HeaderTemplate&gt;
                      &lt;ItemTemplate&gt;
                          &lt;%# Eval("Name") %&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
                  &lt;asp:TemplateField&gt;
                      &lt;HeaderTemplate&gt;
                          File
                      &lt;/HeaderTemplate&gt;
                      &lt;ItemTemplate&gt;
                          &lt;%# Eval("FileName") %&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
                  &lt;asp:TemplateField&gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:Button Text="Download" runat="server" CssClass="btn btn-primary" ID="btnDownload" CommandArgument='&lt;%# Eval("ID") %&gt;' OnClick="btnDownload_Click" /&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
              &lt;/Columns&gt;
          &lt;/asp:GridView&gt;
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>