textfile download with downloadmanager

J

Johannes

Hello All,

In a page called default.aspx I use the following code:
Response.Clear()
Response.ContentType = "text/plain"
Response.AddHeader("Content-Disposition", "attachment;
filename=myFile.txt")
Response.Flush()
Response.Write(MyStringBuilder.ToString())
Response.End

It writes the stringbuilder to a textfile on the client. When I use a
browser (tested with Internet Explorer and Firefox) this works as it
should. When i use my downloadmanager (leechget) I don't get the
textfile but the file default.aspx itself.

What can I do to correct this problem?

For the days coming I wish you all a merry christmas.

John
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top