在MVC2中发布到另一个网站(以便用户的浏览器也被重定向)的最佳方式是什么?我不希望用户仅仅通过使用"view source“就能看到表单数据,所以我并不热衷于
<form action="http://other-site.com/action">
<%= Html.TextBox("something-secret") %>
</form>是否有可能(或可取)使用控制器操作?例如
public ActionResult PostTheData()
{
return Post("http://other-site.com/action", "something-secret");
}发布于 2010-07-12 08:38:43
您可以使用以下人员代码:http://geekswithblogs.net/rakker/archive/2006/04/21/76044.aspx将数据发送到另一台服务器。然后使用Redirect(url)重定向到页面。
https://stackoverflow.com/questions/3225045
复制相似问题