disable button not working after download file asp.net
<p>I have the following code to download a file from the server to the client, that occurs when the button <code>btnSavetoDB_ExportToExcel</code> is clicked, after that I want to have the button disable, how can I achieve that?</p>

<pre><code>string fileName = newFN + ".xlsx";
                Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
                Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName);
                Response.TransmitFile(DestFile);                    
                Response.End();
btnSavetoDB_ExportToExcel.Enabled = false;
</code></pre>

<p>I noticed that the button did not become disable when placed the above code (Response), cause I had another code there and the button became disable with it. So it must be something related with the Response.</p>

<p><strong>EDIT:</strong></p>

<p>The button is within a <code>ModalPopupExtender</code> in case it matters.</p>
