Why Response.Redirect causes System.Threading.ThreadAbortException?

前端 未结 10 1865
误落风尘
误落风尘 2020-11-22 15:00

When I use Response.Redirect(...) to redirect my form to a new page I get the error:

A first chance exception of type \'System.Threading.ThreadAbortEx

10条回答
  •  半阙折子戏
    2020-11-22 15:19

    I had that problem too.

    Try using Server.Transfer instead of Response.Redirect

    Worked for me.

提交回复
热议问题