POST form inside an asp.net web page
A client of mine has asked for a 3rd party form to be integrated into their ASP.NET website. I've been instructed to simply copy the 3rd party code into the site where needed. However, the code is a form such as:
<form type="POST" action="http://domain.com/post.pl">
<input />
<input />
.....
</form>
As the site is an ASP.NET website the body tag looks like this:
<body>
<form runat="server">
...All code here...
</form>
</body>
Therefore I cannot put this code in the page as I can't have a form tag inside the ASP.NET form tag, as the following is invalid:
<body>
<form runat="server>
...Code here...
<form type="POST" action="http://domain.com/post.pl">
<input />
<input />
.....
</form>
...Code here...
开发者_StackOverflow中文版 </form>
</body>
How can I get just the fields in the 3rd party form to be posted to the 3rd Party URL?
Throw the third-party form into a separate page and embed it in your page within an iframe.
精彩评论