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

Explain the difference between singleton and single call?

741


Can we add code files of different languages in app_code folder?

820


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

752


How do you implement sql caching in asp.net?

760


Explain in what order a destructors is called.

779


Explain what is an abstract class?

783


Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?

756


What are the main differences between asp and asp.net?

725


How to rename a table using sql queries?

761


A web service can only be written in .net? State whether true or false.

728


I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)

1715


What does passport and windows authentication mean in ASP.NET?

866


Explain the use of errorprovider control in .net?

687


What is the maximum timeout we can set for Cookies?

747


Explain the function of new view engine in asp.net? : asp.net mvc

742