Error message:
Controls collection cannot be modified because the control contains code blocks (i.e.
<% ... %>).
Other solutions tell one to modify the markup syntax in various ways, but I've been ordered to keep the markup as-is if possible. We need to still compile this stuff on older systems.
Is there a way to turn off this "controls collection" feature to avoid a conflict, since I don't need it?
I opened project as a "Web Site" project, as I don't need most the Web Forms features. The percent syntax used to be ubiquitous, surely there's a work-around somewhere.
.aspx/.ascxproject just fine. I think the problem is you're using a "Web Site" project: you need to convert it to a "real" Web Application project first.