简体   繁体   中英

server.transfer in another web page

当我们使用Server.Transfer并想在另一个页面上执行某些任务时,由于某种原因,任务失败,例如在这种情况下用户ID被阻止,将会发生什么情况?

It's always advisable to use the Server.Transfer when moving from one page to another in asp.net. If you use the Transfer method which make sure that all the object stored in the session and application scope are remain unchanged.

But if you are using asp.net ajax enabled page then Server.Transfer doesn't serve it purpose. You need to use the Response.Redirect instead of Server.Transfer in the asp.net ajax enabled pages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM