title: Problem with Save As dialog in IE 7,8 in ASP.NET
body: <p>i'm trying to write code that download a file that located on the server.
  but the save as dialog wont open in IE.</p>
  
  <p>i tried response.redirect, i tried </p>
  
  <pre><code> Response.Clear();
   Response.ContentType = "text/csv"; 
   Response.AddHeader("Content-Disposition", "attachment; filename=" + fileNameDisplay); 
   Response.WriteFile(Server.MapPath(pathName + fileNameUnique)); 
   Response.Flush(); 
   Response.End(); 
  </code></pre>
  
  <p>every thing works on firefox and chrome , but not in internet explorer.
  i know that there is a security option for this in security ---> custom level ---> Downloads ---> automatic prompting for file downloads , that is always in disable mode and i need to switch it to enable in order it to work, but i don't wont that my users deal with this. 
  how do i overcome this 'security problem' ? </p>
  
  <p>is there any right way to deal with download files ?
  what is the right code to do that ?</p>
  
  <p>thank you,
  gadym</p>