Re: server.transfer after response.flush
From: Dmitriy Lapshin [C# / .NET MVP] (x-code_at_no-spam-please.hotpop.com)
Date: 05/07/04
- Next message: Dmitriy Lapshin [C# / .NET MVP]: "Re: Converting .NET dll to COM dll"
- Previous message: matt: "Re: Session variables with forms based authentication"
- In reply to: tesn: "server.transfer after response.flush"
- Next in thread: tesn: "Re: server.transfer after response.flush"
- Reply: tesn: "Re: server.transfer after response.flush"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 7 May 2004 16:34:59 +0300
Flush forces the HTTP runtime to send already accumulated output to the
client. If there are situations when you need to discard all accumulated
input, don't do Flush() until the point where you are sure no more errors
will occur.
"tesn" <anonymous@discussions.microsoft.com> wrote in message
news:9D75D7CA-2C5B-4E2D-9703-243D8ADF648A@microsoft.com...
> i have an aspx page, i do a response.write ( some html)
> then response.flush()
>
> an error occurs (and on my webconfig i have <customErrors mode="On"
defaultRedirect="./Error.aspx" > )
>
> Then i do a server.transfer to the page, in order to pass the last http
context with the error obj
>
> and on my Error.aspx.cs I have to build dinamically my page
>
> The problem: The html flushed stays on the second page, i cannot clean my
page anymore.
>
> If you have any idea how to do this, please let me know.
>
>
> tesn
> www.askmars.com
- Next message: Dmitriy Lapshin [C# / .NET MVP]: "Re: Converting .NET dll to COM dll"
- Previous message: matt: "Re: Session variables with forms based authentication"
- In reply to: tesn: "server.transfer after response.flush"
- Next in thread: tesn: "Re: server.transfer after response.flush"
- Reply: tesn: "Re: server.transfer after response.flush"
- Messages sorted by: [ date ] [ thread ]