I have the following Razor code in a Template from a Column. The div inside the form renders fine, but strangely the <form> tags from the Html.BeginForm do not get rendered.
(I need a separate form in each of the cells)
(I need a separate form in each of the cells)
columns.Bound(e => e.DisplayText).Title("ACTION").Template(
@<
text
>
@if (item.UserClient.IsActionAvailable())
{
using (Html.BeginForm("Subscribe", "eServices", FormMethod.Post, new {id = @formId}))
{
<
div
id
=
"@divId"
class
=
"subForm"
>
<
input
type
=
"hidden"
name
=
"User"
value
=
"@clientId"
/>
</
div
>
}