What is the difference between response.redirect and
server.transfer, how to choose one among the other?
Answers were Sorted based on User's Feedback
Answer / richa
Server.transfer transfer the page processing from one page
to another page without making a round trip back to the
client where as response.redirect redirect to another URL
and it make a round trip back to the client.
Response.Redirect can be used to redirect to external web
sites where as the Server.Transfer can be used only to
transfer to other pages of the same web site.
| Is This Answer Correct ? | 19 Yes | 1 No |
Answer / praveen singh
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 ? | 8 Yes | 0 No |
Answer / chigicherla mallikarjuna
Server.Transfer
--------------------------------------------------------
Server.Transfer Can move one page to Another page if that
page is in same website.
if Default.aspx, Default2.aspx Are in the same Website
then we can:
Server.Transfer("Default2.aspx");
//By this we can navigate to Default2.aspx
Without changing the Url:
http://localhost:4758/WebSite2/Default.aspx
But if we write:
Server.Transfer("http://www.google.com")
it cannot navigate to That requeste page
where as
Response.Redirect Can navigate to Other pages
Response.Redirect("Default2.aspx")
Response.Redirect("http://www.google.com")
| Is This Answer Correct ? | 5 Yes | 0 No |
Which .NET framework supports Web API?
What are the disadvantages of view state / what are the benefits?
What are the 4 tenants of SOA/D.
What are the differences between clr & cts?
can any one explain about 3-tier architecture and how to deploy 3 layers of 3-tier architecture in 3 different servers.plz send me .net code
Is post back in asp.net?
You are planning the deployment of an ASP.NET application. The application uses a Visual Studio .NET component named DataAccess that will be shared with other applications on your Web server. You are using Visual Studio .NET to create a Windows Installer package. You need to deploy DataAccess and the ASP.NET application so that they can be uninstalled later of necessary. What should you do? A . Create a setup project for DataAccess. Add the ASP.NET application in a custom action. B . Create a setup project for the ASP.NET application. Create another setup project for DataAccess. C . Create a Web setup project for the ASP.NET application. Add a project output for DataAccess. D . Create a Web setup project for the ASP.NET application. Add a merge module for DataAccess.
What is session handling in a webfarm, how it can work with its limits?
What does the "EnableViewState" property do? Why would I want it on or off?
What are the major differences between asp.net1.1 and asp.net 2.0?
8 Answers CTS, Deloitte, Mphasis, Vison,
what is diference between the .net1.0 & .net2.0 ?
What is cross page posting in asp net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)