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 |
can we call web service from the browser?
Why do we use web config?
What is the compiled object?
What are the file extensions for razor views?
How to refresh a page in asp.net
Which control would you use if you needed to make sure the values in two different controls matched?
How would you get asp.net running in apache web servers? Explain it's limitations.
How does a content page differ from a master page?
What?s a bubbled event?
version information is mentioned in which file
I have prepared A Dynamic website in asp.net with c# and using Ms Sql server 2005 as backend database.i am facing problem while uploading this site on my FTP address it is not accessing the database.please could u tell me how cn i upload Sqlserver database on the web and what would be the connection string...???? I am using Server=".";initial catalog=databasename;persist security info=false;integrated security=SSPI;...pleas help me... Thanks in Advance..
When would you not use the oleDbConnection object? a) To connect to an SQL 7.0 database. b) To connect to a DB/2 database. c) To connect to an Access database. d) To connect to an SQL 6.5 database.