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

___________ and ____________ properity to be used to create localized version of a form

1509


How can I see what assemblies are installed in the global assembly cache?

534


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

482


What is asp in java?

478


Define querystring collection in asp?

513






What app opens aspx files?

488


What do you need to run asp?

498


write a program for sorting of all students records in a class according to roll no. using ADO and corresponding database.

1429


What is asp language?

484


Can I use the win32 api from a .net framework program?

498


How do I save an aspx file?

557


How to convert a string into an integer in .net?

518


why and how static variable retain their value after postback form ?

2295


What is the maximum size of an array?

516


What are server-side includes?

494