Server.Transfer vs. Context.RewritePath
问题 I understand they both don't change the URL that the client sees. Is there anything in them that makes one of them preferable over the other? I'm planning to use it in the Application_BeginRequest in Global.asax, but also in regular aspx page. 回答1: I think Context.RewritePath() is the better option. Reason: Server.Transfer() throws a ThreadAbortException every time. The result of calling Response.End() . For more details read the following MS articles: ThreadAbortException Occurs If You Use