Controls Collection cannot be modified

|
"The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)"

See the solution here: Controls Collection Cannot Be Modified Issue with ASP.NET MVC RC1.

I've come across the issue of not being able to mix modifying the Head's .Controls collection when there's <%%> elements in it, before. Nice to know there's a solution!

About this Entry

This page contains a single entry by Robert Wray published on January 29, 2009 9:44 AM.

C# How can I split this string? was the previous entry in this blog.

Using variable Code Coverage % with a standardised build script is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 5.04