ASP.NET - transfer
Asked By Arun Karthik
30-Jul-10 02:02 PM
Hi Friends? i have a doubt?
What is the diff between server.transfer and Response.Redirect..
help me friends...!
Mash B replied to Arun Karthik

Ok, let me explain you the concept briefly.
Transfer and Response.Redirect in ASP.NET applications. Redirect and Transfer both cause a new page to be processed, but the interaction between the client (web browser) and server (ASP.NET) is different in each situation.
Response.Redirect involves a roundtrip to the server whereas Server.Transfer conserves server resources by avoiding the roundtrip. It just changes the focus of the webserver to a different page and transfers the page processing to a different page.
Roundtrip means in case of Response.Redirect it first sends the request for the new page to the browser then browser sends the request for the new page to the webserver then after your page changes But in case of Server.Transfer it directly communicate with the server to change the page hence it saves a roundtrip in the whole process.
If you are using Server.Transfer then you can directly access the values, controls and properties of the previous page which you can’t do with Response.Redirect.
Response.Redirect changes the URL in the browser’s address bar. So they can be bookmarked. Whereas Server.Transfer retains the original URL in the browser’s address bar. It just replaces the contents of the previous page with the new one.
Response.Redirect can be used for both .aspx and html pages whereas Server.Transfer can be used only for .aspx pages and is specific to ASP and ASP.NET.
Response.Redirect can be used to redirect a user to an external websites. Server.Transfer can be used only on sites running on the same server. You cannot use Server.Transfer to redirect the user to a page running on a different server.

Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B)What is a objects in Remoting? (A) What are the ways in which client can create object on server in CAO model? (A) Are CAO stateful in nature? (A) To create objects in CAO A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you compare ASP.NET
DataGrid1.DataSource = ds.Tables(”Products”) What is the maximum length of a varchar in SQL Server? Answer1 VARCHAR[(n)] Null-terminated Unicode character string of length n, with a maximum of presentation logic is done with .aspx extention. How do you define an integer in SQL Server? We define integer in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this we have to edit the page level debugging The control itself will take care of the date display How can you deploy an asp.net application ? You can deploy an ASP.NET Web application using any one of the
authentication modes and its implementation in projects hi, i am doing a project in asp.net. . i want to use a authentication mode in this project.it is a educational based want to do some authentication in this project. How To: Use Forms Authentication with SQL Server in ASP.NET 2.0 patterns & practices Developer Center J.D. Meier, Alex Mackman, Blaine Wastell, Prashant Bansode, Andy Wigley, Kishore Gopalan Microsoft Corporation August 2005 Applies To • ASP.NET version 2.0 • SQL Server 2000 Summary This How To shows you how you can use forms authentication with the
ASP.net configuration how to do ASP.net configuration? Every website can be configured using Asp.NET WebSite Configuration which is present in IDE of Visual Studio. It is present in WebSite Roles, User login, Configuration of website, Data Provider etc. Every website can be configured using Asp.NET WebSite Configuration which is present in IDE of Visual Studio. It is present in WebSite
You can extend it to 40 HTTP connections with the trick mentioned here - http: / / weblogs.asp.net / cazzu / archive / 2003 / 10 / 10 / 31476.aspx u mean one user working perfactly? when more reality, taking into consideration the demographic information you may have about your visitors. • Do Not Redirect Without Permission Redirecting people to the homepage - - or any other place, for that matter - - without that you are working on it. This message, in combination with some of the following resources will make sure the user doesn't leave your site - - at least, not immediately. • Do is a no-brainer. But, what about taking it a step further? Depending on the server-side technology you use, you might be able to trigger an automatic search based on plenty of information we can show in place of a default 404 Error. Mixing the resources available to us with a little creativity lets our visitors know we care. We're round out your overall site experience and one that should not be ignored. http: / / www.asp.net / learn / whitepapers / aspnet-and-iis6 / http: / / learn.iis.net / page.aspx / 270 / upgrading-aspnet-11