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 the meaning of resultset type_scroll_insensitive?

646


What is the significance of master, tempdb and model databases?

623


What is sql server management studio? : sql server management studio

656


What is the stored procedure?

653


How can I tell if sql server is 32 or 64 bit?

583






Do you know concepts and capabilities of sql server?

671


List the different normalization forms?

622


What is join and name different type of joins?

669


What is ms sql server reporting services?

616


How can you append an identity column to a temporary table?

523


How do I edit a stored procedure in sql server?

601


What to check if a User database is locked?

666


Give an example of why you would want to denormalize a database

618


How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.

3457


What is the use of tempdb? What values does it hold?

647