Hello Gary,
As for the ASP.NET web page, if you flush out a certain binary document in
the current page response, it will certainly replace the original html page
and the user can not perform further interaction on the original page
unless the user press back button. This limitation is actually due to the
limitation of http response, each http response can only contains content
of a single mine-type. So far, the only way to stream out a binary
document and remain the original page functionable is streaming out the
document in a new separate browser window.
As you mentioned the webform ReportViewer control, I've just performed some
research on it and it is also using the "new browser window" approach. The
"Export" button on the webform reportviewer control is a hyperlink which
point to a location associated with a custom
httphandler("Reserved.ReportViewerControl.axd") , and when we click the
"Export" link, it will open it in a new separate browser window. The
Reserved.ReportViewerControl.axd handler is responsible for streaming out
the certain report (as the requested format) in that new browser windows.
For your scenario, if you do not want to involve an additional httphandler,
you can just add a new page which is dedicated on streaming out document.
And your main page(which will interact with the client user) can use a
hyperlink to link that page(use some querystring paramters to specific
document inforation). How do you think of this?
Please feel free to let me know if you have any other concerns or questions
on this.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial
response from the community or a Microsoft Support Engineer within 1
business day is
acceptable. Please note that each follow up response may take approximately
2 business days
as the support professional working with you may need further investigation
to reach the
most efficient resolution. The offering is not appropriate for situations
that require
urgent, real-time or phone-based interactions or complex project analysis
and dump analysis
issues. Issues of this nature are best handled working with a dedicated
Microsoft Support
Engineer by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.