Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / vaibhav nagar

Response.Redirect sends message to the browser saying it to
move to some
different page, while server.transfer does not send any
message to the browser
but rather redirects the user directly from the server
itself. So in server.transfer
there is no round trip while response.redirect has a round
trip and hence puts
a load on server.
Using Server.Transfer you can not redirect to a different
from the server itself.
Example if your server is www.yahoo.com you can not use
server.transfer to move
to www.microsoft.com but yes you can move to
www.yahoo.com/travels, i.e.
within websites. This cross server redirect is possible
only using
Response.redirect.
With server.transfer you can preserve your information. It
has a parameter
called as “preserveForm”. So the existing query string etc.
will be able in the
calling page.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can we inherit a static variable?

1111


What is the appSettings Section in the web.config file?

1144


What are the asp.net 2.0 features?

1049


Is asp.net different from asp? If yes, explain how?

1102


Explain how viewstate is being formed?

1032


what are the events raised in asp.net page life cycle?in which stage view state can be loaded?

1049


What is the base class from which web forms are inherited?

1065


What is client side state management?

1007


Explain the difference between array and linkedlist?

1053


14. What are your Future Plans for Swatz Oils GROUP U.K?

2239


Diff between web user control and web custom control?

1025


Define repository pattern in mvc.net? : asp.net mvc

1104


What is the adavantage of using ASP.NET routing?

1243


What are session objects?

1057


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

1146