File Download dialogue is not displayed when we download a file
<pre><code>&lt;asp:HyperLink ID="Download" runat="server" NavigateUrl="~/ExcelFile.xls" TabIndex="1"&gt;Click to download Excel File&lt;/asp:HyperLink&gt;
</code></pre>

<p>I am using the above hyper link in my application to allow the users to download an Excel file.When I click on the hyperlink button it is displaying a file download dialogue box, but when I do the same thing in the server it is opening the Excel file as a web page.</p>

<p>What would be the reason for this issue?</p>

<p>Please help.</p>
