How to Post Data without using the Form Control in Kentico

This article describes why the form control cannot be used inside controls in KenticoCMS and how to achieve the same functionality using alternative approach.
Kentico CMS does not allow you to use several form tags on one page. There is already one form tag used by default. Inserting another form tag into page you would create following code:

<form runat="server"> //default in Kentico
<form runat="server" method=""post> //your
</form> //your
</form> //default in Kentico

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

If you need to post data you can use one of following ways:

1. Use the iframe control and insert the whole page code into it.
2. Use the webclient class to post data.

See also:

Applies to: Kentico CMS 5.5
Share this article on   LinkedIn