0
我正在使用MVC和C#,我需要张贴表单到外部付款网站。但我希望结果页面出现在我的视图的Iframe中。我如何获得一个表单发布到外部网站出现在iframe
<form id='myform' action="https://externalsite.somewhere" method="post" target="myframe">
@Html.HiddenFor(model => model.SomeData)
@Html.HiddenFor(model => model.MoreData)
<input type="submit" value="do it"/>
</form>
<iframe id="myframe" width="600px" height="600px"></iframe>
我可能在错误的方式去了解这个,我以前从来没有这样如果你有关于这个我会很感激的任何建议或意见做到了这一点。