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
What are user controls?
Explain the concept of event bubbling in ASP.NET?
Which is the best institute to learn Microsoft Technologies and the faculty if you Know?
What is data grid view in asp.net?
Web API uses which library for JSON serialization?
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?
What is a global postback url?
What is boxing and unboxing in asp.net?
What are app services?
How do you do Client-side validation in .Net?
Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc
What is active web pages?
List the asp.net validation controls?
What is the difference between debug and release?
What symbol would you use to denote, the start of a code block in aspx views?