We help IT Professionals succeed at work.
Get Started

Asp to excel problem

Last Modified: 2007-12-19
I am trying to open a set of results from a record set generated thru asp in excel. I am testing this on a local server and it works fine for me. But when i goto the web server it opens the file and prompts me to save in as an asp file, or opens the file in dreamweaver as a comma delimtied file....here is the header for my page i use

Response.ContentType = "application/download"
Response.Addheader "Content-Disposition", "inline; filename=accounts.csv"

Is there a setting in iis that i need to set or something else...i have tried various extension to the content type setting and still doesnt work. Also some of my colleagues have had no problem opening this file while some others can open it in excel but it is just one big line of comma delimted text!!any ideas
Watch Question
This problem has been solved!
Unlock 1 Answer and 24 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE