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

Answers were Sorted based on User's Feedback



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

Answer / ganesh

Server.Transfer transfers page processing from one page
directly to the next page without making a round-trip back
to the client's browser. This provides a faster response
with a little less overhead on the server. Server.Transfer
does not update the clients url history list or current url.
Response.Redirect is used to redirect the user's browser to
another page or site. This performas a trip back to the
client where the client's browser is redirected to the new
page. The user's browser history list is updated to reflect
the new address.

Is This Answer Correct ?    10 Yes 2 No

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

Answer / ish rastogi

server.transfer is provide faster redirect way for the web
page in comparable to the response.redirect beacuse in te
case of server.transfer ,the page is redirect (one page to
another page)directly from the server means no round
triping is used.but in the case of response.redirect
firstly the client(browser)send the page request to the
server and the server send the request to the page means
one round triping process is used.
in the server.transfer the page can be redirect from
first page to the second page(continuousally)but in
response.redirect the page can be redirect from first page
to any page.

Is This Answer Correct ?    1 Yes 2 No

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

Answer / sandeep

Response.Redirect can be use with different servers.
Server.Execute use with same server..we can not redirect to
another page which consist different server but in
Response.redirect we cn do so.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

About friend and Protected friend ?

3 Answers   MMTS,


What is the difference between dynamic SGA and static SGA?

0 Answers   MCN Solutions,


How should I destroy my objects in asp.net?

0 Answers  


Do ASP.NET forms authentication cookies provide any protection against replay attacks? Do they, for example, include the client's IP address or anything else that would distinguish the real client from an attacker?

1 Answers  


What are the disadvantages of viewstate/what are the benefits

3 Answers  






Define data caching?

0 Answers  


what is DLL Hell and how it is solved in .NET?

24 Answers   icegen, next, -uk, NIIT,


when a request is made in Life cycle of ASP.NET page .

0 Answers  


can we pass coditions in swtich case?

3 Answers  


I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?

0 Answers  


how to update data set?

3 Answers   IBM, TCS,


what is Master pages in asp.net? what is the advantages and disadvantages?

3 Answers  


Categories