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
Define static member?
When maintaining session through sql server, what is the impact of read and write operation on session objects?
What is strong-typing versus weak-typing?
What are validator? Name the validation controls in asp.net?
Is viewstate enabled by default?
COM+ Used ________________ Isolation Level
How does viewstate work?
Define page output caching?
Explain the features that make asp.net more used framework? : asp.net mvc
How asynchronous call can be implemented using delegates?
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?
How is session id generated?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
How to prepare culture-specific formatting in .net.
Explain the code Access Security (CAS) in .net Framework?