Use the Response object instead of IScriptingContext?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Richard Hollis (richard_hollis_at_hotmail.com)
Date: 11/06/04


Date: Sat, 6 Nov 2004 17:46:30 -0000

Microsoft docs say that IScriptingContext is obsolete, "you should not use
it except in legacy ASP applications. The interface exposes methods that
your component can use to retrieve the ASP built-in objects."

I have a control, which can render some large pages, and these are currently
returned to the calling ASP page in the form of a BSTR, which is then in
turn passed, to Response.Write.

Should I continue to use this approach or should I really by trying to write
directly to the stream itself? And, if I should be trying to write to the
stream then how should I obtain the Response stream object inside the COM
object?

Richard



Relevant Pages

  • Re: Download vs. browsing of a PDF document.
    ... > It is possible using server-side programming, such as ASP or ASP.Net. ... > binary stream. ... > to the Response's Output Stream (to the browser). ...
    (microsoft.public.frontpage.programming)
  • Return a Stream of XML Data that elicits a "SAVE/RUN" Dialog
    ... I am working on an ASP site that currently returns user requested data from ... adding XML as a format. ... I am now attempting to return the same data in a way that elicits the ... I suppose that I can save the XML data which I currently have in a Stream ...
    (microsoft.public.inetserver.asp.db)
  • Re: ATL and IStream
    ... you can't have the same stream contain both UTF-8 ... > In order to persist the data, I create an XML stream from the binary ... > the Response object of an ASP page as an XML data island, ...
    (microsoft.public.vc.atl)
  • Re: Create and download file
    ... file and stream it to the browser. ... Once again, set the content disposition ... > I have a script in ASP 3.0 which creates a CSV file on the server. ...
    (microsoft.public.inetserver.asp.general)
  • Re: Use the Response object instead of IScriptingContext?
    ... > it except in legacy ASP applications. ... > stream then how should I obtain the Response stream object inside the COM ...
    (microsoft.public.inetserver.asp.components)