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

What are user controls?

1009


Explain the concept of event bubbling in ASP.NET?

1105


Which is the best institute to learn Microsoft Technologies and the faculty if you Know?

2150


What is data grid view in asp.net?

958


Web API uses which library for JSON serialization?

1071


1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?

2135


What is a global postback url?

952


What is boxing and unboxing in asp.net?

1071


What are app services?

938


How do you do Client-side validation in .Net?

1089


Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc

1032


What is active web pages?

958


List the asp.net validation controls?

944


What is the difference between debug and release?

1079


What symbol would you use to denote, the start of a code block in aspx views?

960