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

Answer Posted / ramesh

Server.Redirect:
response the page or return output without any request from
the client(Browser)
ex
Server.Redirect("Demo.aspx")
Disadvantage
it does not allow query String

Request.Redirect:
send the request(page) to server and processed it, finaly
redirect to corressponding page
Response.Redirect("Demo.aspx")

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a reflection?

581


How to add DateTime Control in normal DataGrid Server Control?

580


What is a session in programming?

556


1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?

1660


Name the namespace which is used by ado.net?

525






Explain State management in asp.net

623


How does a content page different from a master page?

572


Can we set which type of comparison we want to perform by the CompareValidator control?

513


In the Repeater control which way you can edit?

641


Define page fragment caching?

517


What does it mean your session has timed out?

523


What does the hotspot class in .net do?

564


How can you ensure a permanent cookie?

549


how can create login from create and written conde in asp.net

1775


how to elimainte the similar data from the different tables

1704