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 dirty read?

809


Why use view instead of a table?

706


What is difference between standardization and normalization?

735


How can change procedure in sql server?

712


As a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this?

806






What is an execution plan?

741


What are drillthrough reports?

128


What is the need for group functions in sql?

743


What is default constraint?

721


What are horizontal and vertical scaling?

166


what is a mixed extent? : Sql server administration

749


Explain the phases a transaction has to undergo?

729


How to write a query with a right outer join in ms sql server?

654


What are the events recorded in a transaction log?

729


What is nolock?

745