prompt open/save csv file

i have code written in asp to prompt user to open/save csv file format. it works fine on my local pc but once transfer to live server. the file format turns out to become asp instead of csv when i download the file. what is goin on?
Response.ContentType ="application/vnd.ms-excel"
Response.AddHeader "content-disposition","filename=export.csv"
angelmistAsked:
Who is Participating?
 
anthonywjones66Commented:
Response.AddHeader "content-disposition","filename=export.csv; attachment"

Anthony.
0
 
_Stilgar_Commented:
Can you paste all the relevant code?

Stilgar.
0
 
_Stilgar_Commented:
In the meantime, try Response.ContentType = "application/octet-stream".

Stilgar.
0
 
_Stilgar_Commented:
hongjun,

I participated in this question, and as far as I know the solution I gave should do the trick. I'm asking for a points split.

Stilgar.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.