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 / raghumadhav tirunagari

server.Trnasfer will prevent round trip. it will redirect
pages which or in the same directory. NO way to pass the
query strings . Thru http context we can able to get the
previous page control values.

Response.Redirect : There is a round trip to process the
request. We can redirect to any page external / internal
other than aspx. We can pass the query string thru which we
can manage sessions.

Is This Answer Correct ?    6 Yes 0 No

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

Answer / 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

More Dot Net AllOther Interview Questions

2. I've a class Parent Class A and a Derived Class B. Here is a scenario. I've an instance of Class A as objA and an instance of Class B as objB. I can refer a child class variable as objB=objA, but cannot do objA=objB what is the reason?

2 Answers   247Customer,


how to create applications by using Visual Studio 2012?

0 Answers   TryTechnicals Pvt Ltd,


Whate are resource files? How are they used in .net?

0 Answers  


What is .net mobile images control. : Microsoft dot net mobile

0 Answers  


Explain hard disk and what is its purpose? : Dot net architecture

0 Answers  






Navigation controls in ASP.net,explain each control in brief?

2 Answers   Six Sigma,


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form.

0 Answers  


What are public and private assemblies ?

0 Answers  


What actually happes when you add a something to arraylistcollection ?

0 Answers  


What is the purpose of hard disk? : Dot net architecture

0 Answers  


what are login controls?

0 Answers   Six Sigma,


difference between data reader and dataset

0 Answers   PCS,


Categories