有誰知道如何使用ASP.NET MVC重定向到另一個服務器/解決方案?這樣的事情:重定向到另一臺服務器 - ASP MVC
public void Redir(String param)
{
// Redirect to another application, ie:
// Redirect("www.google.com");
// or
// Response.StatusCode= 301;
// Response.AddHeader("Location","www.google.com");
// Response.End();
}
我已經嘗試過上述兩種方式,但它不工作。
+1從你從哪裏添加源。我可以欣賞這樣的行爲。 – XIII 2010-07-27 19:23:59