문제

What is the equivalent of

Response.Redirect("abc.aspx",false)

when i use Server.Transfer instead of Response.Redirect.I use false as the second param of Response.Redirect to stop receiving the ThreadAbort exception in a try catch block

I want to get rid of the Thread.Abort exception when i use Server.Transferis in a try catch block. Any thoughts ?

도움이 되었습니까?

해결책

Use Server.Execute instead. Just as with passing false to Response.Redirect, you have to make sure that nothing undesirable happens when the rest of the code in the method you are in (and its calling methods) is executed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top