A method in dumping a GridView to an Excel file to download/open from the internet was recently broken with new Windows Updates.
My code dumps from a GridView to an
Try doing following:
Replace "attachment" from
Response.AddHeader("content-disposition","attachment;filename=GridViewExport.xls")
with "inline"
Response.AddHeader("content-disposition","inline;filename=GridViewExport.xls")
It may help!
Content-Disposition:What are the differences between "inline" and "attachment"?