What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is asp.net web pages?

532


What is route in web api?

535


What is cookies in asp net?

525


How many types of Cookies are available in ASP.NET?

590


Describe how to implement globalization and localization in the use interface in .net.

568






How you will improve web application performance?

555


Can we use MSSql as backend in asp.net...if yes then How.?

585


How can we register exception filter globally?

593


Explain login controls.

622


What is viewstate? What does the “enableviewstate” property do?

526


How can we create a website?

538


Which object wraps the state or data of a user?

552


Define cookie.

571


What is distributed system in asp.net?

546


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1414