What is difference between Server.transfer and
Response.redirect ?
Answer Posted / yugandhar reddy
Request.Redirect tranfers the user to the new page.The new
page can be in the same application or outside the
application.Browser upgradation of new url i.e round trip
to client takes place.It cannot take the current form
control values to the new page byitself.using querystring
only it can take.
ex: Request.Redirect("Default2.aspx");
where as Server.Transfer redirects to the new page that
should be present in the same application.single trip takes
place i.e no browser upgradation of new url.It can take
current for control values to the new page using
preserveform attribute.
ex : Server.Transfer("Default2.aspx");
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Explain how to refresh an asp page on a single click of a button?
What is an .asp file?
What is difference between asp and php?
What is ascx cs?
What does asp mean in technology?
What is the difference between sap r/2 and r/3
What is the difference between jsp and asp?
How do I create an aspx file?
Explain the differences between asp and asp.net and is asp.net backward compatible to asp?
Name the methods by which output stream is controlled?
What are scripting objects in asp?
What is the common language specification (cls)?
What is the difference between razor and aspx view engine?
How do you initialize a two-dimensional array that you don't know the dimensions of?
What is the microsoft intermediate language (msil)?