Difference between server.transfer and server.execute method? [Resolved]

Posted by Amatya under Sql Server on 3/17/2016 | Points: 10 | Views : 1602 | Status : [Member] | Replies : 1
Difference between server.transfer and server.execute method?

Feel free to share informations.
mail Id ' adityagupta200@gmail.com


Posted by: Rajnilari2015 on: 3/17/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50


@Amatya Sir,
First of all, the category should be Asp.net and not SQL Server.

When Server.Execute is used, a URL is passed to it as a parameter, and the control moves to this new page. Execution of code happens on the new page. Once code execution gets over, the control returns to the initial page, just after where it was called. However, in the case of Server.Transfer, it works very much the same, the difference being the execution stops at the new page itself.

Hope this helps

Thanks & Regards,
RNA Team

Amatya, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response