The difference between Server.Transfer and Response.Redirect

原创 2004年10月11日 15:30:00

You may want to redirect users from one Web Forms page to another page. You might do this to display a page that is matched to the user's browser capabilities or is written in the language that the user speaks.

There are two ways to redirect pages:

  • Using a server-side method. In this scenario, the server simply transfers the context to another page. The advantage is that you can share page context information between pages. The disadvantage is that the user's browser does not know about the transfer, so the browser's history is not updated. If the user refreshes the page, unexpected results can occur.
  • Using the browser. In this scenario, you send a command to the user's browser that causes the browser to fetch a different page. The advantage is that the browser's history is updated. The disadvantage is that this scenario performs an extra round trip, which can affect performance.

Response.Redirect vs Server.Transfer Difference

Response.Redirect And Server.Transfer Difference  FOR REDIRECT we want to redirect the request...
  • csharp25
  • csharp25
  • 2013年09月19日 14:51
  • 1236

C# 页面转向 Response.Redirect, Server.Transfer, Server.Execute的区别

Response.Redirect 简单地发送一条消息到浏览器,告诉浏览器定位到另一个页面。你可以使用下面的代码将用户引导到另一个页面:   Response.Redirect("WebForm2...
  • qq61394323
  • qq61394323
  • 2015年01月05日 16:37
  • 1031

the differences between Server.Transfer and Response.Redirect

The following are thedifferences between Server.Transfer and Response.Redirect 1. Just like hyperli...
  • Chuck_qiang
  • Chuck_qiang
  • 2015年08月29日 00:39
  • 211


1、Response.Redirect(): Response.Redirect方法导致浏览器链接到一个指定的URL。当Response.Redirect()方法被调用时,它会创建一个应答,应答头中...
  • dannywj1371
  • dannywj1371
  • 2013年08月23日 11:14
  • 5303


Response.Redirect和Server.Transfer都能实现页面的跳转,但两者又有很大区别。 一 地址栏里显示的地址不同 Response.Redirect会显示跳转的网页的...
  • HopeForeverAlice
  • HopeForeverAlice
  • 2017年06月18日 10:11
  • 169

The difference between Failure and Success

The difference between failure and sucess is the difference between doing something almost right and...
  • bright60
  • bright60
  • 2006年05月18日 19:23
  • 1432

The Differences Between Java, C And C++

if (!window.netshel_ord) { netshel_ord=Math.random()*10000000000000000;}if (!window.netshel_tile) { ...
  • jianxiong8814
  • jianxiong8814
  • 2007年09月25日 12:21
  • 1200

The difference between the request time and the current time is too large.

报错信息: [Error Code]:RequestTimeTooSkewed, [Message]:The difference between the request time and the ...
  • hraceo
  • hraceo
  • 2017年01月09日 11:07
  • 1146

What's the difference between C++ and Python

In Principle 1. C++ is a "statically typed" language, while Python is a "dynamically typed" languag...
  • bachelorchen
  • bachelorchen
  • 2015年07月20日 11:07
  • 223

【JS】The differences between 基本类型 and 引用类型

5个基本数据类型:Undefined、Null、Boolean、Number、String;引用类型:var person = new Object();这里的person就是一个引用类型的变量,他的...
  • qq_27359091
  • qq_27359091
  • 2016年06月03日 22:08
  • 433
您举报文章:The difference between Server.Transfer and Response.Redirect