How To Export GridView to Excel
If you want the option to open the Excel file without saving than // comment out the line below // Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ContentType = “application/vnd.xls” …
Go here to see the original:
How To Export GridView to Excel

