Create file export and save from ASP.NET page
<p>I have an ASP.NET web page that contains a grid view of user data. I need to take the data in the gridview, generate an excel file, and allow the user to save that excel file to their local machine.</p>

<p>What would be the best way to accomplish this in code? Would it be possible to display a file save dialogue and then create the file from the grid data after the user selects the directory and filename?  I've accomplished this in software development but never dealt with it in web development.</p>

<p>Thanks</p>
