What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other?

Answer Posted / rohan more

Incase of Server.Transfer ,it doesnot cause rod trip to
client and also it does not store url history and directly
redirect to the requested page without changing URL(Please
note).It transfer from Server itself.

where as in case of Response.redirect it cause round trip
to client browser and then transfer from page which cause
request to redirected page.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have multiple web config files for an asp.net application?

623


Can I have a unique key as foreign key?

621


Why do we need Sessions?

665


How many types of controls are there in asp.net?

598


How do we sort the data from a dataset?

668






Define cookie.

656


What are the advantages and disadvantages of Using Cookies?

591


Difference between singleton and singlecall.

669


Do cookies store passwords?

595


To add a hyperlink column to the DataGrid which tag is used ?

664


How may clustered index we can create in table?

644


Is asp.net still used?

654


What would be salary for 8+ years of experience in ASP.NET in different metro city in india?

2077


What is asp.net with mvc? : Asp.Net MVC

614


How do we assign page-specific attributes?

706