What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other?
Answers were Sorted based on User's Feedback
Answer / ganesh
Server.Transfer transfers page processing from one page
directly to the next page without making a round-trip back
to the client's browser. This provides a faster response
with a little less overhead on the server. Server.Transfer
does not update the clients url history list or current url.
Response.Redirect is used to redirect the user's browser to
another page or site. This performas a trip back to the
client where the client's browser is redirected to the new
page. The user's browser history list is updated to reflect
the new address.
| Is This Answer Correct ? | 10 Yes | 2 No |
Answer / ish rastogi
server.transfer is provide faster redirect way for the web
page in comparable to the response.redirect beacuse in te
case of server.transfer ,the page is redirect (one page to
another page)directly from the server means no round
triping is used.but in the case of response.redirect
firstly the client(browser)send the page request to the
server and the server send the request to the page means
one round triping process is used.
in the server.transfer the page can be redirect from
first page to the second page(continuousally)but in
response.redirect the page can be redirect from first page
to any page.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / sandeep
Response.Redirect can be use with different servers.
Server.Execute use with same server..we can not redirect to
another page which consist different server but in
Response.redirect we cn do so.
| Is This Answer Correct ? | 1 Yes | 3 No |
What is session tracking & methods?
can u any one tell me clearly where is stored cache datas?
What is a web api? Which protocol is used in a web api?
How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?
What Is ASPNET_WP.exe? What Is The Use Of It? In Which Place Inproc Session Stored ? Explain Session State ?
2 Answers Phoenix Technologies,
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
What is the use Membership in asp.net? and What is the use profiler in asp.net?
Can two web application share a session and application variable ?
5 Answers Satyam, V3 Engineers,
i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?
What is the difference between the response.write() and response.output.write() methods?
Features and disadvantages of dataset ?
4 Answers Interlink, Microsoft,
Why mvc is faster than asp.net? : Asp.Net MVC
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)