Difference between server.transfer and server.execute method?

Answer Posted / sreyasmn

Server.Transfer takes the control execution of the page to
the new page and thereafter it doesnt return automatically
to the original page.

The transfer happens at the server side and the client
browser is not aware of the change and hence will not
update the URL.

Server.Execute actually executes the specified page and
then returns back to the original page. This can be used in
scenarios where you want to go to a specific page, execute
some thing and then come back to the original page.

Is This Answer Correct ?    26 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqlservr.exe - process - sql server (sqlex?press)?

592


List all the types of user-defined functions?

515


What are “phantom rows”?

1236


what is the difference between them (ethernet networks and token ring networks)? : Sql server database administration

516


In what three ways is the return statement used in a stored procedure?

511






Explain foreign key in sql server?

569


What are the difference between data mart and data warehouse? : sql server analysis services, ssas

496


How to optimize stored procedure optimization?

511


Does an index slow down updates on indexed columns?

573


What is the maximum number of index per table?

556


What is the log shipping?

576


How to delete existing triggers using "drop trigger"?

552


How to edit table in sql server 2017?

504


What are “unrepeatable reads”?

735


Define master database?

573