I have an ASP page which will create a record set from an SQL query and create an excel page using that by using Response.ContentType = "application/vnd.ms-excel" property being set.
When executing the file,it will show a save dialog for an excel file (whatever filename i have mentioned in Response.AddHeader) as
Response.AddHeader "Content-Disposition", "attachment; filename=" & strFileName
This works well in local .But when running from the server (i checked only in IE ),ITs showing me a dialog box to "OPen" "Save " the ASP file itself, IF i give Save , Its showing an error message like "Could not download ..."
Any idea how to solve this ?