Streaming response to browser

Discussion in 'ASP .Net' started by =?Utf-8?B?UmFqYQ==?=, Jan 13, 2005.

  1. Hi,
    I want to render my response(ASP.NET) as excel format. So I am using

    Response.ContentType = "application/vnd.ms-excel";
    Response.AddHeader("Content-Disposition", "filename=results.xls");

    But I have more than 10,000. Is there any way that I can improve the
    response by streaming (uisng MemoryStream or any other Stream class) ?

    Thanks,
    Raja
    =?Utf-8?B?UmFqYQ==?=, Jan 13, 2005
    #1
    1. Advertising

  2. If you want to stream the response you can use the Response.Flush method.

    "Raja" wrote:

    > Hi,
    > I want to render my response(ASP.NET) as excel format. So I am using
    >
    > Response.ContentType = "application/vnd.ms-excel";
    > Response.AddHeader("Content-Disposition", "filename=results.xls");
    >
    > But I have more than 10,000. Is there any way that I can improve the
    > response by streaming (uisng MemoryStream or any other Stream class) ?
    >
    > Thanks,
    > Raja
    >
    =?Utf-8?B?Q3lyaWwgUy4=?=, Jan 13, 2005
    #2
    1. Advertising

  3. You have more than 10,000 WHAT?

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    Neither a follower nor a lender be.

    "Raja" <> wrote in message
    news:...
    > Hi,
    > I want to render my response(ASP.NET) as excel format. So I am using
    >
    > Response.ContentType = "application/vnd.ms-excel";
    > Response.AddHeader("Content-Disposition", "filename=results.xls");
    >
    > But I have more than 10,000. Is there any way that I can improve the
    > response by streaming (uisng MemoryStream or any other Stream class) ?
    >
    > Thanks,
    > Raja
    >
    Kevin Spencer, Jan 13, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. alex
    Replies:
    0
    Views:
    315
  2. alex
    Replies:
    0
    Views:
    295
  3. Ron
    Replies:
    4
    Views:
    481
  4. nano2k

    Streaming SOAP response

    nano2k, Jul 27, 2008, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    167
    John Saunders
    Aug 5, 2008
  5. Larry Woods

    Example of Streaming response to client???

    Larry Woods, Jul 10, 2003, in forum: ASP General
    Replies:
    6
    Views:
    124
    Felix Wu [MSFT]
    Jul 14, 2003
Loading...

Share This Page