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

Define static member?

934


When maintaining session through sql server, what is the impact of read and write operation on session objects?

935


What is strong-typing versus weak-typing?

1051


What are validator? Name the validation controls in asp.net?

961


Is viewstate enabled by default?

913


COM+ Used ________________ Isolation Level

1911


How does viewstate work?

1016


Define page output caching?

944


Explain the features that make asp.net more used framework? : asp.net mvc

891


How asynchronous call can be implemented using delegates?

959


If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

952


How is session id generated?

866


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

908


How to prepare culture-specific formatting in .net.

972


Explain the code Access Security (CAS) in .net Framework?

1192