2009-12-19 71 views

回答

1

你可以使用一个WebClient从服务器获取回应,并将它作为文本:

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