|
I've created a page that saves information form a database in to a word document using the following code
<%
Response.ContentType = "application/msword"
Response.AddHeader "Content-Disposition", "attachment;filename=DataView_noPC.doc"
%>
And when the page has loaded in asks if i want to save a file called Dataview_noPC.doc.
Which is great as thats what its meant to do.
However some times, it asks if i want to save a file called word.asp which is the name of the asp page that holds the code to produce the word document.
That isn't so good.
What makes it sometime work and how can i stop it?
thanks for any adive you can give.
|