|
Post by mprentis on Jun 6, 2007 10:12:36 GMT -6
We have a custom web part that basically streams a requested file from a network drive (files that we have stored outside of SharePoint libraries, as they are created by a separate application). When we moved to MOSS 2007, we can successfully select a link that will stream the file back to the browser. However, once that stream is complete, none of the hyperlinks on the portal site are active (even outside of our web part).
It is almost as if the HTML page has ceased to respond to further commands after the streaming is complete. Note that we did not encounter this issue with SharePoint 2003. Any ideas?
We are essentially handling this through the following code within an event handler around the "View File" hyperlink that we display within our web part:
this.Context.Response.ContentType = mimeType; this.Context.Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName); this.Context.Response.AddHeader("Content-Length", fileSize); this.Context.Response.WriteFile(fileName); this.Context.Response.Flush(); this.Context.Response.Close();
Thank you in advance for your response.
|
|