Finally found out by tracing the page with ?umbDebugShowTrace=true that the problem is a code block:
Error adding macro Insert form from Umbraco Contour The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). at System.Web.UI.ControlCollection.Add(Control child) at Umbraco.Forms.UI.Usercontrols.RenderForm.RenderUi() in
As Umbraco.Forms.UI.dll is obfuscated I can't see why this is a problem.
Is the only solution to go through my site and convert all codeblocks to usercontrols?
The strange part is that its not a block but a <%= "stringbaby" %> stringything. And that kind of string writing is not a problem with Contour in general, it seems.
Code block issue: Only "previous" and "next" buttons when rendering Contour form.
When I try to render a Contour form placed in a Rich Text Editor field, only prev and next buttons appear.
I have <form runat=server> around the form.
The form is an exact copy of the Contact form template
I have tried
I have tried to render the form directly in the template with
Finally found out by tracing the page with ?umbDebugShowTrace=true that the problem is a code block:
As Umbraco.Forms.UI.dll is obfuscated I can't see why this is a problem.
Is the only solution to go through my site and convert all codeblocks to usercontrols?
Isn't this a bug?
I'm running 4.6.1 and Contour 1.1.5
Comment author was deleted
Hi Christian,
Could you shed some light on the code blocks that you have on your template?
Hi Tim
I've been removing code bit by bit and finally found the culprit: It was SquishIt who did it!
http://www.codethinked.com/post/2010/05/26/SquishIt-The-Friendly-ASPNET-JavaScript-and-CSS-Squisher.aspx
I guess I'll go on without squishing for now.
Any idea why this breaks?
/christian
Comment author was deleted
Well guess it breaks since it's a code block, will do some tests and see if we can avoid this error in a future release.
The strange part is that its not a block but a <%= "stringbaby" %> stringything. And that kind of string writing is not a problem with Contour in general, it seems.
Have a nice weekend :)
In case someone runs into this problems, the fix for me was to do put the squishit calls into a razor script and reference it from the master page.
is working on a reply...