Server.Transfer takes the control execution of the page to the new page and thereafter it doees not return to the original page. This execution happens at the server side and the client is unaware of the change, and hence it maintains the original URL.
Server.Execute
In Server.Execute method, a URL is passed as a parameter, and the control moves to this specified page. Execution of code happens on this specified page. Once the execution is over, the control will return to the original page.
This method is very useful if you want to execute something in a specified page, and then come back to the original page.
The URL in the browser also remains the original form's URL.
0 comments:
Post a Comment