title: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). cant get this error out
body: <p>tried a lot but cant figure out this error, im using script and ajax toolkit and i changed to &lt;%= ...%> and also added page.header.databind() but no use</p>
  
  <pre><code>The Controls collection cannot be modified because the control contains code blocks (i.e. &lt;% ... %&gt;).
  </code></pre>
  
  <p>can any body please help me</p>
  
  <p>and my stack trace is</p>
  
  <pre><code>[HttpException (0x80004005): The Controls collection cannot be modified    because the control contains code blocks (i.e. &lt;% ... %&gt;).]
     System.Web.UI.ControlCollection.Add(Control child) +9871215
     AjaxControlToolkit.ScriptObjectBuilder.RegisterCssReferences(Control  control) in f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server  \AjaxControlToolkit\ExtenderBase\ScriptObjectBuilder.cs:323
    AjaxControlToolkit.ExtenderControlBase.OnLoad(EventArgs e) in f:\TeamCity\buildAgent\work\80acd78aa4c25314\Server\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs:305
    System.Web.UI.Control.LoadRecursive() +54
    System.Web.UI.Control.LoadRecursive() +145
    System.Web.UI.Control.LoadRecursive() +145
    System.Web.UI.Control.LoadRecursive() +145
    System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Page.ProcessRequestMain(Boolean    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
  </code></pre>