Ask a Question related to ASP.NET General, Design and Development.
-
PJ #1
Response.Buffer
When streaming a file attachment to the response stream, should I set
Response.BufferOutput = False
or
Response.Buffer = False
or both?
TIA~PJ
PJ Guest
-
AW7 vs. DirectorMX for psychology experiment using response times AND response answers
Hello, I'm very new to application design, but need to develop a web based application to use at multiple schools as part of an experimental... -
#25217 [NEW]: calling ob_gzhandler after modified buffer in ob handler, return origin buffer
From: Xuefer at 21cn dot com Operating system: win PHP version: 4.3.3RC4 PHP Bug Type: Output Control Bug description: ... -
Response.buffer doesnt work
Hello, I am testing buffering an asp page and Flushing information out to the browser, hence i wrote the code in an asp page that follows this... -
HELP: writing a file to response buffer --> IE shows wrong filename
Hi In an .aspx codebehind file I retrieve a file from a database and write it to the response buffer, so the browser pops up a 'save file' dialog... -
Steve C. Orr, MCSD #2
Re: Response.Buffer
Neither are necessary.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"PJ" <pjwal@hotmail.com> wrote in message
news:%23BxjVeHUDHA.1280@TK2MSFTNGP12.phx.gbl...> When streaming a file attachment to the response stream, should I set
>
> Response.BufferOutput = False
>
> or
>
> Response.Buffer = False
>
> or both?
>
> TIA~PJ
>
>
Steve C. Orr, MCSD Guest
-
PJ #3
Re: Response.Buffer
Do you mean: Neither or necessary if you Flush the stream every time in the
loop?
Also, are one or both of these methods needed...
Response.Close()
Response.End()
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:%239i$QgHUDHA.2420@TK2MSFTNGP10.phx.gbl...> Neither are necessary.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "PJ" <pjwal@hotmail.com> wrote in message
> news:%23BxjVeHUDHA.1280@TK2MSFTNGP12.phx.gbl...>> > When streaming a file attachment to the response stream, should I set
> >
> > Response.BufferOutput = False
> >
> > or
> >
> > Response.Buffer = False
> >
> > or both?
> >
> > TIA~PJ
> >
> >
>
PJ Guest
-
Steve C. Orr, MCSD #4
Re: Response.Buffer
If you are streaming a single file through your page, and you haven't output
any HTML in this page, then none of the statements you've mentioned are
necessary for the file download to be successful.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"PJ" <pjwal@hotmail.com> wrote in message
news:evj6fGIUDHA.2520@tk2msftngp13.phx.gbl...the> Do you mean: Neither or necessary if you Flush the stream every time in> loop?
>
> Also, are one or both of these methods needed...
> Response.Close()
> Response.End()
>
> "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> news:%239i$QgHUDHA.2420@TK2MSFTNGP10.phx.gbl...>> > Neither are necessary.
> >
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD
> > [url]http://Steve.Orr.net[/url]
> >
> >
> > "PJ" <pjwal@hotmail.com> wrote in message
> > news:%23BxjVeHUDHA.1280@TK2MSFTNGP12.phx.gbl...> >> > > When streaming a file attachment to the response stream, should I set
> > >
> > > Response.BufferOutput = False
> > >
> > > or
> > >
> > > Response.Buffer = False
> > >
> > > or both?
> > >
> > > TIA~PJ
> > >
> > >
> >
>
Steve C. Orr, MCSD Guest
-
PJ #5
Re: Response.Buffer
you appear correct w/ the .Buffer and End properties (as long as i set the
Content-Length header), but if i don't call .Flush() in the loop, then
asp.net will buffer the entire response in memory before the open/save
dialog box appears on the client. this is no good for the large file
downloads we have to
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:%23oHXbUKUDHA.2116@TK2MSFTNGP12.phx.gbl...output> If you are streaming a single file through your page, and you haven'tset> any HTML in this page, then none of the statements you've mentioned are
> necessary for the file download to be successful.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "PJ" <pjwal@hotmail.com> wrote in message
> news:evj6fGIUDHA.2520@tk2msftngp13.phx.gbl...> the> > Do you mean: Neither or necessary if you Flush the stream every time in> > loop?
> >
> > Also, are one or both of these methods needed...
> > Response.Close()
> > Response.End()
> >
> > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > news:%239i$QgHUDHA.2420@TK2MSFTNGP10.phx.gbl...> > > Neither are necessary.
> > >
> > > --
> > > I hope this helps,
> > > Steve C. Orr, MCSD
> > > [url]http://Steve.Orr.net[/url]
> > >
> > >
> > > "PJ" <pjwal@hotmail.com> wrote in message
> > > news:%23BxjVeHUDHA.1280@TK2MSFTNGP12.phx.gbl...
> > > > When streaming a file attachment to the response stream, should I>> >> > > >
> > > > Response.BufferOutput = False
> > > >
> > > > or
> > > >
> > > > Response.Buffer = False
> > > >
> > > > or both?
> > > >
> > > > TIA~PJ
> > > >
> > > >
> > >
> > >
> >
>
PJ Guest
-
Steve C. Orr, MCSD #6
Re: Response.Buffer
Right, the methods exist mostly for performance reasons. They can improve
performance and scalability in certain situations such as the one you've
mentioned. But they are not necessary; they are optimizations.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"PJ" <pjwal@hotmail.com> wrote in message
news:OQlYPdLUDHA.1364@TK2MSFTNGP10.phx.gbl...in> you appear correct w/ the .Buffer and End properties (as long as i set the
> Content-Length header), but if i don't call .Flush() in the loop, then
> asp.net will buffer the entire response in memory before the open/save
> dialog box appears on the client. this is no good for the large file
> downloads we have to
>
>
> "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> news:%23oHXbUKUDHA.2116@TK2MSFTNGP12.phx.gbl...> output> > If you are streaming a single file through your page, and you haven't> > any HTML in this page, then none of the statements you've mentioned are
> > necessary for the file download to be successful.
> >
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD
> > [url]http://Steve.Orr.net[/url]
> >
> >
> > "PJ" <pjwal@hotmail.com> wrote in message
> > news:evj6fGIUDHA.2520@tk2msftngp13.phx.gbl...> > > Do you mean: Neither or necessary if you Flush the stream every time> set> > the> > > loop?
> > >
> > > Also, are one or both of these methods needed...
> > > Response.Close()
> > > Response.End()
> > >
> > > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
> > > news:%239i$QgHUDHA.2420@TK2MSFTNGP10.phx.gbl...
> > > > Neither are necessary.
> > > >
> > > > --
> > > > I hope this helps,
> > > > Steve C. Orr, MCSD
> > > > [url]http://Steve.Orr.net[/url]
> > > >
> > > >
> > > > "PJ" <pjwal@hotmail.com> wrote in message
> > > > news:%23BxjVeHUDHA.1280@TK2MSFTNGP12.phx.gbl...
> > > > > When streaming a file attachment to the response stream, should I>> >> > > > >
> > > > > Response.BufferOutput = False
> > > > >
> > > > > or
> > > > >
> > > > > Response.Buffer = False
> > > > >
> > > > > or both?
> > > > >
> > > > > TIA~PJ
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Steve C. Orr, MCSD Guest



Reply With Quote

