[mapguide-users] Forcing MgByteReader download prompt in IE7
(asp.net)
Kenneth, GEOGRAF A/S
ks at geograf.dk
Mon Oct 22 04:47:06 EDT 2007
I have it working (for a unrelated project):
System.IO.FileInfo f = new System.IO.FileInfo(strFilename);
Response.Clear();
Response.AddHeader("Content-Length", f.Length.ToString());
Response.AddHeader("Content-Disposition", "attachment; filename=" +
System.IO.Path.GetFilename(strFilename) + ";size=" f.Length.ToString());
... code to read from file and write to Response.OutputStream ....
The length stuff enables the progressbar in IE or FF.
Regards, Kenneth, GEOGRAF A/S
Jackie Ng skrev:
> Yes it was a typo in my code (doh!)
>
> Unfortunately, fixing the typo still didn't fix the original problem.
>
> - Jackie
>
>
> JasonBirch wrote:
>
>> Hi Jackie,
>>
>> Is this copy/paste?
>>
>> ----------------------
>>
>> Response.AppendHeader("content-disposition", "attachement;
>> filename=\"eplot.dwf\"");
>>
>> ----------------------
>>
>> If so, I think you've got a typo in "attachment".
>>
>> Jason
>>
>>
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20071022/afbb5c68/attachment.html
More information about the mapguide-users
mailing list