Output to the client in the form of file flow, remember to join Response.Appendheader ("Content-Disposition", "Attachment; FileName =" System.web.httputility.URLENCODE (System.Text.Encoding.utf8.getbytes ("query results. XLS ")));
Key words attachment: Save dialog inline: If the client is installed, it is automatically opened.