Strange download javascript problem

G

Guest

I'm using javascript throughout my siute for basic client validation and a
menu structure.

In a couple of areas I've also code to download to a csv file. As soon as
this code is run anywhere in my site the javascript simply stops working.
Even references to the document object return an "undefined value". Any help
would be greatly appreciated.

Download code as follows:

Response.AppendHeader("content-disposition", "attachment; filename=" +
fileName);
Response.ContentType = "text/csv";
Response.Flush();
Response.Write(fileText);
Response.End();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top