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 response.redirect and
server.transfer, how to choose one among the other?

Answers were Sorted based on User's Feedback



What is the difference between response.redirect and server.transfer, how to choose one among the o..

Answer / richa

Server.transfer transfer the page processing from one page
to another page without making a round trip back to the
client where as response.redirect redirect to another URL
and it make a round trip back to the client.

Response.Redirect can be used to redirect to external web
sites where as the Server.Transfer can be used only to
transfer to other pages of the same web site.

Is This Answer Correct ?    19 Yes 1 No

What is the difference between response.redirect and server.transfer, how to choose one among the o..

Answer / praveen singh

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 ?    8 Yes 0 No

What is the difference between response.redirect and server.transfer, how to choose one among the o..

Answer / chigicherla mallikarjuna

Server.Transfer
--------------------------------------------------------
Server.Transfer Can move one page to Another page if that
page is in same website.

if Default.aspx, Default2.aspx Are in the same Website
then we can:

Server.Transfer("Default2.aspx");
//By this we can navigate to Default2.aspx

Without changing the Url:
http://localhost:4758/WebSite2/Default.aspx

But if we write:

Server.Transfer("http://www.google.com")
it cannot navigate to That requeste page

where as
Response.Redirect Can navigate to Other pages

Response.Redirect("Default2.aspx")

Response.Redirect("http://www.google.com")

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What are the page level transaction and class level transaction?

1 Answers   Satyam,


You have been given the task of designing a web services to expose the data that is stored in a database on the server. In order to successfully build the web services, you need to import some namespaces. What is the minimum namespace you need to import? a) System.Web b) System.WebServices c) System.Web.Services d) System.Web.ServiceModel

2 Answers   Syntax Softtech,


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

0 Answers   TCS,


What is session in http request?

0 Answers  


what is CLR?

3 Answers   PrimeLine,


What should you do is you want to remove an existing component but would like to make some funtionalities?

0 Answers  


extensibility in asp.net2.0

0 Answers  


Which method has beenintroduced in asp.net 4.0 to redirect a page permanently?

0 Answers  


What is reflection and disadvantages of reflection ?

2 Answers   CTC, Microsoft,


What is the need of client side and server side validation ?

1 Answers   Keane India Ltd,


What is http pipeline in asp.net?

0 Answers  


How is mvc different from asp.net? : Asp.Net MVC

0 Answers  


Categories