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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need asp.net?

1056


Name the tools or API for developing or testing web api?

996


What is difference between cache and session?

1019


What is asynchronous call?

1108


What is a ashx file?

1190


What is the use of web.config file?

1056


List some of the important session state modes of asp.net.

1033


What is the syntax for datagrid and specifying columns?

2618


Is asp.net 64-bit enabled? How?

1108


Describe the Server Control Events of ASP.NET?

1227


In how many ways we can retrieve table records count?

1100


If you want to write your own dot net language, what steps you will you take care?

1156


Explain the difference between AutoPostBack and IspostBack in ASP.NET?

1114


How do I open an ashx file in windows 7?

1115


What does aspcompat="true" mean?

1073