title: Page.ClientScript.RegisterClientScriptBlock and nested server controls
body: <p>I'm using Page.ClientScript.RegisterClientScriptBlock on PreRender in a nested Server Control environment. The script does not get written to the page, does anyone know why this happens?</p>
  
  <pre><code>protected override void OnPreRender(EventArgs e)
      {
          Page.ClientScript.RegisterClientScriptBlock(typeof(System.Web.UI.Page), "FMMedia",
              FMServerControls.Resources.Media.Media.MediaScript, true);
  
          base.OnPreRender(e);
      }
  </code></pre>