Hi, I've had no problems using the information below to export data to an excel workbook, but its not working on the server that hosts my website. I can test it all day long on "localhost" but it won't work on my site.
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment; filename=DB_Search_Results.xls"
Is it a problem, do you think, exporting to Excel? I guess not everyone may have excel so I'm thinking of exporting to a CSV file, that way folks can hande it at their choosing.
I did not write this, I had help from a coworker.... I'm wondering how to edit this to (because I am not a programmer) export to a csv file.
I tried changing vnd.ms-excel to vnd.ms-notepad and renaming the exported file to .txt and .csv but I get the same 500 error on my site.
Otherwise is it a permissions with my hosting folks? Is thi something that normally is not permitted on a server? I had the DB password protected but removed the password thinking that might be the problem but nope....that wasn't it either.
I've been playing with this for over 14 hours now... I've fought the good fight... HELP!!!
Laurie
LadyCK3
aka: Laurie
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment; filename=DB_Search_Results.xls"
Is it a problem, do you think, exporting to Excel? I guess not everyone may have excel so I'm thinking of exporting to a CSV file, that way folks can hande it at their choosing.
I did not write this, I had help from a coworker.... I'm wondering how to edit this to (because I am not a programmer) export to a csv file.
I tried changing vnd.ms-excel to vnd.ms-notepad and renaming the exported file to .txt and .csv but I get the same 500 error on my site.
Otherwise is it a permissions with my hosting folks? Is thi something that normally is not permitted on a server? I had the DB password protected but removed the password thinking that might be the problem but nope....that wasn't it either.
I've been playing with this for over 14 hours now... I've fought the good fight... HELP!!!
Laurie
LadyCK3
aka: Laurie