2009-12-19 70 views

回答

1

你可以使用一個WebClient從服務器獲取迴應,並將它作爲文本:

public ActionResult MyAction() 
{ 
    using (var client = new WebClient()) 
    { 
     string response = client.DownloadString("http://otherserver/controller/action"); 
     return Content(response, "text/html"); 
    } 
} 
相關問題