Thank you, unfortunately it doesn't work. Maybe that's because of all the changes in kentico (the article is from 2011).
Perhaps there's a better way to do what I'm doing....
I have a 'page type' field that I'm adding a FORM to. Then I copy the value of that 'page type' field into a web part field using a macro:
{%CurrentDocument["PageTypeField_HtmlContainingBizForm"]|(identity)GlobalAdministrator%}
Then in the webpart's code:
<asp:PlaceHolder runat="server" ID="plcHolder">
<asp:Label ID="DisplayContent" runat="server" Text=""></asp:Label>
</asp:PlaceHolder>
DisplayContent.Text = WebPartField_HtmlContainingBizForm;
// then I try to resolve the controls ... neither of these two attempts worked:
// Resolving the dynamic controls didn't work
ControlsHelper.ResolveDynamicControls(this.plcHolder);
// Resolving the macros didn't work either
DisplayContent.Text = MacroResolver.Resolve(DisplayContent.Text);
Both give me bizform widget code instead of the actual bizform:
{^widget|(name)BizForm|(BizFormName)ChapterFeedbackForm|(widget_displayname)On-line+form^}
Thank you, Rita.