Hello
There is a possibility to show DownloadFile form in web browser using following peace of code
Code: ( text )
HttpContext context = HttpContext.Current;
context.Response.ContentType = "application/octet-stream";
context.Response.AddHeader("Content-Disposition","attachment; filename=\"" + fileName + "\"");
but there is somenthing missing because when I use filename with "#" it's displayed in wrong way as "_" in IE 7.0 (in firefox is OK). You have a choice in this window to save and to open the file. When you want to save -> filename will be wrong, when you choose to open filename in eg. word filename shown at the top of the window of word will be ok.
So I used ascii code of # then it save correct filename but when I choose to open it in word it filename has ascii codes.
I assume that I should give correct coding type somewhere in this peace of code ... but I don't know where. Can you help me ?