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


Please Help Members By Posting Answers For Below Questions

Define a variable in asp?

708


Explain the difference between server.transfer and response.redirect?

696


What is msmq?

689


What does asp stand for in technology?

696


Define querystring collection?

729


Explain the tasks performed by <> tags?

707


What purpose is served by the application.lock method?

733


i learnt .net and would like to know if there is any institute in hyderabad that gives real time knowledge.i worked on testing and planning to move on to .net putting same amount of experience in .net.kindly suggest me the institute and other details.

1504


What is the difference between cshtml and aspx?

713


What are the browsers that can access asp pages?

707


How do in-process and cross-process communication work in the common language runtime?

672


What is a variable in asp?

690


How to display images using response object?

698


What is the difference between asp and acp?

890


What is querystring collection in asp?

709