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

Answer Posted / manjunath

1)response.redirect sends the message to the browser to
send to different pages while server.transfer will not send
the message rather redirect user directly to some differnt
page.
so there is no round trip in server.transfer but
response.redirect has the round trip puttind load on the
server.

2)server.transfer will not redirect to the different server
while response.redirect can redirect to any different
server.

3)server.transfer can store data using paramater
called "preserved form" , this query strings are available
in the next calling pages.In latter it is not possible.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is .net viewstate?

593


How do we do authentications using atlas?

619


How to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

600


What is cache coherency? : Dot net architecture

564


Explain about common language infrastructure?

659






Explain about metadata?

612


deference between display and visibility property of CSS

1869


server.transfer limitation ?

1871


What is a virtual memory? : Dot net architecture

614


Is dim fs as filestreamobject is a managed code? : Dot net architecture

576


I want to create a project like google maps how can we do that with atlas?

559


How to upload in video,mp4,in .net 4.5 ..?

626


Differences between VS 2005, 2008 and 2010 ?

668


Explain 'managed' mean in the .NET context

775


Explain about microsoft visual studio?

637