ERRORS Question:
Download Questions PDF

What is Difference Between Server.Response and Response.Redirect in ASP.Net with C#?


The data transfering between two page will be more differ on server.Transfer() and Response.Redirect().


Server.Transfer() helps the one less round trip. The main advantage of this transfer the first page to second page with better performance. The data can pass through variables, query string and also can retrive from the previous page control value.

Eg: Server.Transfer("Default.aspx");


It is very similar to server.Transfer. The main difference is the posted pervious page values can't be accessable. Here also the data can pass through server variables and query string. It simply redirect the page from one page to another.

Eg: Response.Redirect("Default.aspx")

Note: But the pervious page values can't be accessable by Response.Redirect().

Download ERRORS Interview Questions And Answers PDF

Previous QuestionNext Question
What is the error in the following code:
int i=400,j;
What is macro in c?
Difference between single linked list & double linked list
What is fifo & lifo?
What is stack & queue?