Dynamically adding control to master page
<p>I have a problem with dynamically loading control's into master page's ContentPlaceHolder.</p>

<p>Name of the ContentPlaceHolder and path of the UserControl is loaded from db and send to this little code:  </p>

<blockquote>
  <p>Control c = this.Page.LoadControl(uc-path-from-db);<br>
  this.Page.Master.FindControl(cph-name-from-db).Controls.Add(c);</p>
</blockquote>

<p>When I run it, I get this error:</p>

<blockquote>
  <p>The Controls collection cannot be modified because the control contains code blocks (i.e. &lt;% ... %>).</p>
</blockquote>

<p>What am I doing wrong?</p>
