Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Content between body and form View modes: 
User avatar
Member
Member
Leandro Brito - 9/27/2011 6:00:16 PM
   
Content between body and form
Hello guys,

I need put a form2 between body and form1 (portaltemplate form).
I try use MasterPage of my site but the result is a form within other.

By example:
version using master page tab.

portal
<form1>
<form2>
</form2>
</form1>

Correct result

myform
</form2>
<form2>

portal template form
<form1>
</form1>



Someone knows the solution?

Thanks

User avatar
Member
Member
kentico_michal - 9/29/2011 4:05:43 AM
   
RE:Content between body and form
Hello,

Kentico CMS does not allow you to use several form tags on one page (only one is allowed). There is already one form tag used on the page, therefore inserting another form tag into page creates following code:

<form runat="server"> //kentico
<form method=""post>//your
</form> //your
</form> //kentico


As you can see this in not what you would like to achieve.

If you would like to post data from your form control you can use one of following ways:
1. use iframe and insert the whole page with the code into it
2. use webclient class to post data instead of form control. You can find an example here:
How to use HttpWebRequest to send POST request to another web server

Best regards,
Michal Legen