Response.Redirect("http:// url")和Response.Write("REDIRECT = http:// url")之间有什么区别?

Dha*_*ari -2 httpwebresponse c#-4.0 asp.net-mvc-3

我正在使用C#编写ASP.NET MVC3.

Response.Redirect("http://www.google.com");和之间有什么区别Response.Write("REDIRECT=http://www.google.com");

Guf*_*ffa 6

不同之处在于,第一个将使用重定向页面替换响应并结束执行,而第二个将仅将文本写入响应流并继续创建页面的其余部分.