tags:

views:

23

answers:

1

I have a ashx page handling file/attachment requests

last line of code is

System.Web.HttpContext.Current.Response.WriteFile(filename)

It ends up downloading a file called GetFile.ashx (which sounds like a page name but if I rename the .ashx to .zip it is actually the correct file...

Any reasons why this might be happening and how to stop it?

A: 

problem was solved needed to add a header value which set its filename and contenttype!

Steve