When saving from IE browser, save works fine, but when saving from Chrome or Firefox throws error. In Chrome the error is ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION
Dim filename As String = Session.SessionID + “_out.xls”
Dim path As String = TryCast(Me.Master, Site).GetDataDir() + “\GridWebBasics”
’ Saves to the file.
Me.GridWeb1.SaveToExcelFile(path + filename)
’ Sents the file to browser.
Response.ContentType = “application/vnd.ms-excel”
Response.AddHeader(“content-disposition”, “attachment; filename=” + filename)
Response.WriteFile(path + filename)
Response.End
Thanks,
JOhn