| re: Server.Transfer - very bizarre
Server.Transfer alway genrates an abort. this is how it stops the processing
of the current thread, so the current page will not overwrite the output
generated by the transfered page (they are writing to the same output
stream). if you catch exceptions, don't catch thread abort
-- bruce (sqlwork.com)
"Stan" <nospam@yahoo.com> wrote in message
news:eGzsNrPeFHA.1456@TK2MSFTNGP15.phx.gbl...[color=blue]
> This code has been working for a long time:
>
> try
> {
> Server.Transfer ("Order.aspx");
> }
> catch (Exception ex)
> {
> ///
> }
>
> Now, all of the sudden, the page started generating "Thread aborted" error
> message.
>
> Here is what I found -
>
> 1) the exception occurs on the main page after Server.Transfer
>
> 2) If I comment out try / catch block (!!!) it works fine (!)
>
> I tried to do Server.Transfer ("Order.aspx", true) or Server.Transfer
> ("Order.aspx", false) - same result.
>
> Why in the world it would do that?
>
> Thanks,
>
> -Stan
>
>[/color] |